Create server in Discord.
Create text channel for logs.
Create roles Admins and Moderators.
Invite Bot to your Server (see Creating a Bot User below).
Make bot a Moderator.
Install Node.js and NPM.
Install forever (task scheduler).
npm install -g foreverClone repository and install package dependencies.
git clone https://github.com/citra-emu/discord-bot.git
cd discord-bot
npm installCreate new JSON file for bot config with the following contents in the directory specified below:
For Development: ./config/development.json
For Production: ./config/production.json
{
"logChannel": "",
"clientLoginToken": ""
} To get logChannel, type \#YOUR_CHANNEL_NAME in your Discord server chat.
Copy string of numbers after # into "logChannel": ""
Copy App Bot User token to "clientLoginToken": ""
./start.sh Requires a config/production.json file.
node server.js Requires a config/development.json file.
GNU General Public License v2.0
First you need to go to discord developers and click "New Application"




Public Bot


client_id in the URL to your Client ID under App Details, then go to this url https://discordapp.com/oauth2/authorize?&client_id=YOUR_CLIENT_ID_HERE&scope=bot&permissions=0



