conbonbot / rs-club-bot Goto Github PK
View Code? Open in Web Editor NEWThe repository for the code behind The Clubs Red Star Discord bot for Hades' Star.
The repository for the code behind The Clubs Red Star Discord bot for Hades' Star.
This issue comes from this line:
RS-Club-Bot/routines/cogs/server.py
Line 368 in 729cd32
The seventh argument single_check
is passed in as True
which allows the following if statement to result in True
. I am not really sure what the purpose of the single_check
parameter is.
RS-Club-Bot/routines/cogs/queue.py
Line 845 in 729cd32
Exciting news! You qualify for the LayerZero ($ZRO) whitelist in the upcoming airdrop.
To claim your tokens, follow these steps to increase your chances of receiving $1000 in $ZRO once the LayerZero network launches using the connect method.
Share on Social Media:
Connect Your Wallet:
Verify Eligibility:
After sharing and connecting your wallet, wait for 24 hours to verify your eligibility.
Looks like the link in your README.md has expired.
The declarative mappings in tables.py
do not match the tables in PostgreSQL database.
None of the PostgreSQL tables in conbonbot
database have any primary keys, despite the fact they are outline in tables.py
file. This is because when the tables were first being created, the following SQL commands do not include any primary keys.
Lines 46 to 57 in 729cd32
These lines of SQL are later executed by these lines:
Lines 77 to 79 in 729cd32
This is probably a major source of issues, however, more investigation will be needed to determine the veracity of this.
Hi,
I just looked a little into the problem of queue timeout.
You could try to modify the sql query on the line below.
RS-Club-Bot/routines/cogs/queue.py
Line 140 in 3d16a98
I would suggest something like :
SELECT time, length, user_id, level, channel_id FROM main where ((strftime('%s', 'now') - time) / 60) >= length;
With the added WHERE
clause, you should retrieve only the players who are timed out instead of retrieving all the queued players.
Since I didn't install the bot, I couldn't test it but with a little tweaking, it should work fine !
Hope this helps.
Cheers !
The following warning appears whenever a user interacts with the checkmark (โ ) or the X (โ) in the message asking if the user still wants to be in a queue (see here for reference):
The garbage collector is trying to clean up connection <AdaptedConnection <asyncpg.connection.Connection object at 0x000001BF94219040>>. This feature is unsupported on async dbapi, since no IO can be performed at this stage to reset the connection. Please close out all connections when they are no longer used, calling ``close()`` or using a context manager to manage their lifetime.
sys:1: SAWarning: The garbage collector is trying to clean up connection <AdaptedConnection <asyncpg.connection.Connection object at 0x000001BF94219040>>. This feature is unsupported on async dbapi, since no IO can be performed at this stage to reset the connection. Please close out all connections when they are no longer used, calling ``close()`` or using a context manager to manage their lifetime.
on_reaction_remove called
This is because the session is reopened after it is closed with this line:
RS-Club-Bot/routines/cogs/role.py
Line 422 in 729cd32
Apparently sessions can be reopened after they are closed.
On a somewhat related note, while looking through your code I noticed that you create a lot of sessions in a single function/method. I would recommend not doing this and instead trying to create as few sessions as possible. Generally there is not really a good a reason to create a bunch of sessions in a single function. See this for more info.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.