A simple Discord bot written in Node.js that assigns roles when you react to messages.
- Clone the repo
$ git clone https://github.com/IAmFletcher/discord-bot.git
// OR
$ git clone git@github.com:IAmFletcher/discord-bot.git
- Install the dependencies
$ yarn install // All dependencies
// OR
$ yarn install --production // Only production dependencies
- Run
$ yarn start
We use MariaDB, not MySQL, because the bot is only set-up to enable unicode emoji support in MariaDB.
-
- Take note of Client ID
- Go to Bot tab and Add Bot
- Take note of Bot Token
-
Add bot to a Discord server
Fill in the Client ID and follow this link: https://discordapp.com/api/oauth2/authorize?client_id=${CLIENT_ID}&permissions=268501056&scope=bot
- Set-up environment variables
DiscordBotID={ClientID}
DiscordBotToken={BotToken}
SQLUser=
SQLPassword=
If you'd like to contribute to the project, please read the Contributing Guidelines first.