Open Sasiko opened 4 years ago
This is not related to PM2 in any way, I don't see why they would even consider adding such a feature.
@Sasiko
I doubt the developers will add anything that is specific for just discord bots since PM2 is meant to handle several types of things.
At the moment, the process will continue to run even if the bot has invalid token. This send unecessary amount of requests to discord which can potentially lead to rate limits. Can pm2 instead just detect invalid bot token as error and stop the process rather than having it running?