Search code examples
node.jsdiscorddiscord.js

Token Finder (in a good way)


I want to make a discord bot that when someone sends a discord token, bot token, or bot secret, it automatically deletes the message. I think the pattern bot tokens follow is:

  1. It contains two periods
  2. Starts with "OTc"
  3. Contains numbers

How could I make it scan for the other two?


Solution

  • You can use a simple pre-existing bot with a RegEx pattern. I also found a chart showing how tokens are generated so that might help with your quest.

    enter image description here Credit to hxr404/Discord-Console-hacks on GitHub