R
Railway2y ago
x4zx

Constant restart of the bot

I put the bot on the hosting, but it constantly restarts, tell me please - what could be the problem
7 Replies
Percy
Percy2y ago
Project ID: N/A
x4zx
x4zxOP2y ago
N/A
x4zx
x4zxOP2y ago
Because of this piece of code, the bot constantly restarts. The fact is that there are more than 1000 people on the server and at startup the bot starts checking whether each person from this 1000 is in the database and he does not have time to check everyone as the bot restarts
Adam
Adam2y ago
Instead of pulling them all at once, try pulling them in batches if 1000 is too much, maybe 500 works? Also just a note, bots disguised as a user are not allowed to be hosted on Railway.
x4zx
x4zxOP2y ago
And how to do that?
Adam
Adam2y ago
right now you’re adding them one by one. Try pushing multiple at the same time by adding them to the same dictionary/dataframe
Want results from more Discord servers?
Add your server