Sen descrición

dependabot[bot] a923f9fb09 Bump ws from 7.3.1 to 7.4.6 %!s(int64=4) %!d(string=hai) anos
.gitignore 66f53fe001 Initial commit %!s(int64=5) %!d(string=hai) anos
LICENSE 66f53fe001 Initial commit %!s(int64=5) %!d(string=hai) anos
README.md a8f67897b8 Update README.md %!s(int64=5) %!d(string=hai) anos
config.json.example a30a526e8b Add files via upload %!s(int64=5) %!d(string=hai) anos
index.js a30a526e8b Add files via upload %!s(int64=5) %!d(string=hai) anos
package-lock.json a923f9fb09 Bump ws from 7.3.1 to 7.4.6 %!s(int64=4) %!d(string=hai) anos
package.json a30a526e8b Add files via upload %!s(int64=5) %!d(string=hai) anos

README.md

React-bot

A super simple discord bot thta gives and removes your roles when you react to a message

Features

  • Add roles whenever someone reacts to a certain message with a choosen emoji
  • Removes roles whenever someone removes a reaction from a certain message with a choosen emoji

How to set up

  1. First make sure that you have the latest version of NodeJS installed.
  2. Run this command in a command prompt to install all the libraries required to run the code: npm install .
  3. Create your bot on the developer portal on the discord website.
  4. Copy the example config to config.json and configure as detailed below.

|Setting|Description| |--|--| |token|Discord API bot token (found on the developer portal)| |activity|Whatever you want your bot to say in the playing status| |reactions|An array of all the messages you want to check| |reactions.messageId|The is of the message to check| |reactions.emojiId|The id of the emoji that the users have to react to| |reactions.roleId|The id of the role ot give the users thta react to the message with the selected emoji|

  1. Connect your bot to your guild, by entering thE link https://discordapp.com/oauth2/authorize?client_id={YOUR BOT ID}scope=bot&permissions=8.
  2. Start the bot by running node index.js.
  3. Congratulation, your bot is up and running!

If any problem comes up or something please open an issue on github (I haven't tested it much)

Have a great life!