A bot for Discord that counts the usage of custom emojis. Built with Discord.js.
- Clone the project and install dependencies with
npm install
- Create a
config.json
file in the project directory. The format for this file is as follows.
{
"token": "your bot token",
"messageLimit": 5000
}
The environment variable TOKEN
will be used if the token is not specified in config.json
- Start the bot with
npm start
To invoke the bot on a server, just @mention the bot while it is running. Optionally, you can append the following flags, separated by spaces.
norepeats
Only count one of each type of emoji per messagesorted
Sort the output from most to least usedreactions
Also count reactions to messages
The bot can only scan for messages on channels that it has permission to read.