![]() |
před 11 měsíci | |
---|---|---|
.gitignore | před 4 roky | |
LICENSE | před 4 roky | |
README.md | před 3 roky | |
config.json.example | před 4 roky | |
index.js | před 4 roky | |
package-lock.json | před 11 měsíci | |
package.json | před 4 roky |
A super simple Discord bot that gives and removes your roles when you react to a message.
npm install
.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|
https://discordapp.com/oauth2/authorize?client_id={YOUR BOT ID}scope=bot&permissions=8
.node index.js
.Have a great life!