Ask coding questions

← Back to all posts
Rate Limits? Bot Offline
meziosaur (0)

Hello,

My bot on replit won't run, and I was shown this link
https://discord.com/developers/docs/topics/rate-limits

I'm not sure why this happens, is the bot getting too many commands at once?
If anyone encountered this, what are you solutions?

Comments
hotnewtop
FishballNooodle (218)

If you are using a coroutine function (aka using await) in a for/while loop, you will be causing a ratelimit there since every corountine is 1 request.
Python runs a few thousand requests per second so you should try using a more sustainable alternative

Coder100 (19279)

Yeah, a theory is that all many python repls share similar containers, and so thus have the same IP, and perhaps that is what is ratelimiting there.

Try using the bash language.