adri326 / unnamed-8.txt

Unnamed (8).txt - a Discord Bot
0 stars 0 forks source link

Unnamed (8).txt

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.

Installation

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.

Running

node ./

(done)

The user config will be put in the config.json file.

Commands

This bot comes - thankfully - shipped with a few commands. These being:

Using this bot for yourself

Go 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