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
x4zx2y ago
N/A
x4zx
x4zx2y 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
x4zx2y 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
More Posts
Used nixpacks.toml to install apt packages on build, but they are not recognized on deployIt's a python 3.9 app running a Neural Network that uses the openCV library, which is bringing an imCannot see Deployments for my serverHello! I have made a Railway server to host a THREE.js server for my group project with two buddiesany help with verification I think i have a bug ?so..my github account is more than 7 months old. a few months ago I was able to put projects on railCron Job using PythonHello, I am trying to create a cron job for my project using Python on railway.app. I found a link Error when updating umami installI used the umami template ~3 months ago and clicked the "check for updates" button. The updated codeHow to log log files in a github deployed github repoI have updatet my code and have set a secondary debugg log file system what i wantet to store in theError installing dependencies Node JSHello, I´ve recently joined railway; thanks for this application. I have an error deploying my app istrapi project deletes all data and config on every deployHi. This must be a noobie question, but yesterday I made my first strapi deploy on railway, and afteUsage this month but hasn't been running at allNot sure why it's saying I've used $4 of usage this month when it's been off entirely this month.High RAM usage in the USAGE tab that doesn't reflect the actual RAM usage per deployementHi, everything is in the title and I am scarred it's going to empty my credits when I am still testi