RateLimit issues / other causes
Hi, I have a lot of bots on my server and I feel like I get ratelimited everytime I restart the server.
Everytime I restart the server about 14 bots startup in 5 seconds and it just stops no errors nothing.
If I startup 14 bots in 14 seconds then it does work? Is there a way to monitor the ratelimit / not get IP blocked?
How it currently works is that out of my database it fetches about 50 bots, these bots startup with a create call to the bot code.
6 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!So there is not a way to recieve the ratelimit data so I can for example wait with starting up more bots?
Currently I can't really get multiple servers
@Bacio001 start them with a delay between
We currently do that like a 1 second delay between them but even then it sometimes happens
Hence I would like to be able to check if the ratelimit is being hit
1 second is like nothing, you cant check if the ratelimit will be hit
you can check only when you got ratelimited
Really I thought 1 second was more then enough since you can do 50 requests a second on 1 IP