Unitech / Unitech/pm2

[Discord]Treat "invalid bot tokens" as error

Open
#4,847 2 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.