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
Project ID:
N/A
You might find these helpful:
- A lot of cpu usage when my discord bot hosted on railway if offline
- I can't connect to the database, from the servers for hosting.
- My bot is running but there is no service!
⚠️ experimental feature
N/A
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
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.
And how to do that?
right now you’re adding them one by one. Try pushing multiple at the same time by adding them to the same dictionary/dataframe