Abhijith4124 / Ahhh-Bot

Ahhh Bot - Palworld Discord Bot | Whitelist | Join/Leave Messages | Automatic Roles and Announcement
15 stars 3 forks source link

Rate limit api ban #14

Closed Blacky0316 closed 7 months ago

Blacky0316 commented 7 months ago

Hello, I think your bot is not designed for multiple servers. I have now received a discord api ban because I exceeded 50 requests per second.

because discord has a rate limit of 50 requests.

How many requests does your bot send on 1 server?

it is not good

Abhijith4124 commented 7 months ago

It should not hit the limit unless there is a lot of activity on the Game Server. There might also be a bug that can cause the bot to spam whitelist messages.

Blacky0316 commented 7 months ago

It should not hit the limit unless there is a lot of activity on the Game Server. There might also be a bug that can cause the bot to spam whitelist messages.

Each server has over 20 players.

but how many queries does the bot make when querying status, etc

Abhijith4124 commented 7 months ago

It should not hit the limit unless there is a lot of activity on the Game Server. There might also be a bug that can cause the bot to spam whitelist messages.

Each server has over 20 players.

but how many queries does the bot make when querying status, etc

The bot fetches data from the server every 5 seconds, that is when the new join/leave is checked as well as the whitelist.

The Server Status is Updated every 10 seconds.

You can see these values in rconService File.