#Bot being rate limited when it starts
34 messages · Page 1 of 1 (latest)
can you log out the actual data
Please add the following code to your code base outside of any other event listeners and provide the full log output relevant to your issue.
client
.on("debug", console.log)
.on("warn", console.log)
• Note: if you initialize your Client as bot or other identifiers you need to use these instead of client
• If the output is too long to post consider using a bin instead: gist | hasteb.in | sourceb.in | hastebin
the rate limit ends after 1 hour
I can't wait another hour
Not what he asked for, log the data object
you can hit the ratelimit again within an hour
you can just run it again...
okay
it'll hit the ratelimit and give the data
Wat, you always get the data object when hitting the ratelimit
you tried to login 1000 times
Getting 429 hit on route
/gateway/botwhen you addclient.on('debug', console.log)?
Reasons :
§ You (or someone else) logged in 1000+ times in 24 hours. If you have auto restart on for your code upon crash, you know the culprit.Are you using shared hosting like Glitch or Repl.it?
§ If yes, your IP has probably been banned by Discord, and theres nothing you can do rly except contact their support, or migrate to a better VPS.
I think that the server is automatically restarting the bot on every error
yeah don't do that lol
nothing wrong with pm2 restart but if it crashes every time then you'll incur that ratelimit
do you know how to disable pm2 auto restart?
nope, that's a matter of pm2
do i have to wait for 24 hours to login again?
is this ban permanent or we'll be able to start the bot again after some hours
ratelimits aren't permanent
good
@lament nova@hushed onyx Thanks for helping me guys