Description
Is your feature request related to a problem? Please elaborate.
Bot connected to Discord more than 1000 times within a short time period. PM2 will forever just keep spinning back up the bot without any care about the past issue.
Describe the solution you'd like
This is more so just a heads up but the bot has no stop point and will forever keep trying to reconnect even if the mongodb database is down causing the token to get revoked. There really should be some sort of pause if there is a error log preventing connection to mongodb otherwise PM2 May forever keep spinning it back up and causing it to timeout every 30 seconds.
Does your solution involve any of the following?
- Logviewer
- New config option
Describe alternatives you've considered
Turning back on my mongodb server and just resetting my token and accepting it lmfao
The other option instead of adding a check for past timeout reason is to check for mongodb before contacting discord servers as if there is no DB no need to contact discord as the bot will restart on timeout.
Who will this benefit?
Dumbasses like me who deploy everything at home and when there power goes out and forget to spin back up the DB lol
Additional Information
No response