[Discord]Treat "invalid bot tokens" as error
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 43.3k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named. Start by locating Discord invalid-token handling in PM2's JavaScript/Node.js process-management path and reproduce the behavior with an invalid token. Done means the process is reported as an error and stops instead of continuing to send requests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100