A (very) simple bot for reaction to role assignment.
It allows you to set a message per server on which the bot will look for reactions and use them to give or remove roles to the members of the server. It works by linking an emote/emoji with a role. The bot will then add the emote as a reaction to the selected message. Anyone who then reacts to the emote will be given the role. Additionally, if they un-react, their role will be removed.
In a terminal, do
git clone https://github.com/adri326/unnamed-8.txt.git
cd unnamed-8.txt
npm i
Then, create a new file called secret.json
, and put inside of it:
{
"token": "YOUR_TOKEN",
"info": {
"description": "A great description",
"owner": "YOUR NAME",
"prefix": "PREFIX"
}
}
Remember to fill the different fields with the correct information. If you don't know what a bot token is, visit this page.
You should also check out the mighty best practices.
In case you're not sure whether or not the prefix you're thinking about is available, check if it is already used with discordbots-prefix.
node ./
(done)
The user config will be put in the config.json
file.
This bot comes - thankfully - shipped with a few commands. These being:
setMessage
: define which message the reactions will be onaddRole
: add a role/emoji pair to the listened onesremoveRole
: remove a role/emoji pair from the listened oneshelp
- provided by ErisGo ahead, you don't even have to credit me. Though you can show me the cool stuff you do with it, I would highly appreciate it :3