![]() |
hai 11 meses | |
---|---|---|
.gitignore | %!s(int64=4) %!d(string=hai) anos | |
LICENSE | %!s(int64=4) %!d(string=hai) anos | |
README.md | %!s(int64=3) %!d(string=hai) anos | |
config.json.example | %!s(int64=4) %!d(string=hai) anos | |
index.js | %!s(int64=4) %!d(string=hai) anos | |
package-lock.json | hai 11 meses | |
package.json | %!s(int64=4) %!d(string=hai) anos |
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!