game-ci / versioning-backend

Stateful backend to keep track of unity versions and docker build queues
MIT License
11 stars 4 forks source link

Discord anti anti #35

Closed webbertakken closed 2 years ago

webbertakken commented 2 years ago

Context

This is how Discord deals with you after hitting a certain number of connections:

Hey Webber, It appears your bot, Unity CI, has connected to Discord more than 1000 times within a short time period. 
Since this kind of behaviour is usually the result of a bug we have gone ahead and reset your bot's token.

No warning or anything.

Since our bot is running on a cron, every 15 minutes, 24 hours a day. This means the minimum number of connections is 100 a day.

The threshold of 1000 times seems to span multiple days. This means our minimum number of connections is already very close to Discords maximum number of connections.

As a result we will not be able to set the cron to run much more frequently, as we'll hit the same problem even if we're only connecting at maximum once per run.

Changes

Checklist