Skip to content

hsergiu/reaction-count

Repository files navigation

Reaction Insight

Discord bot that counts reactions for every message and saves to Mongo. Uses discord.js v14.

This way you can display the most interacted with message(s) using a command, or show top users based on how many reactions they got. Supports multiple guilds.

The bot fetches the reaction count for every message (on removed/added reaction) and sets the new value in the database so the number is more accurate.

Also, if the bot was removed from the server and added back, it doesn't fetch the latest messages to recalculate the reaction number (In this case you would have to wait for someone to react to those latest messages). It works best when it is permanently online on a server.

Default prefix is '_'. It can be changed.

Commands

Help

help cmd

Stats

Check stats for the current server or channel (using 'current-channel' parameter). Overrdide the default result limit (5) using 'limit' param. (ex: _stats limit 10 ; _stats current-channel)

stats cmd

stats channel cmd

Author stats

Find who are the top authors of the current server based on the reaction count they got on their messages. (ex: _author-stats)

top authors cmd

The other commands that are not showcased: change-prefix, clear-stats

Local setup

  • requirements: docker, npm
  • define your .env file with credentials
  • install dependencies with npm
  • docker compose up
  • use any eslint extension

About

Discord bot that counts reactions and gives insight

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published