- Log into Discord and head to https://discord.com/developers/applications
- Click
New Application - Give the Bot an appropriate and agree to the terms.
- Optionally add an image and save the bot.
- Visit the
OAuth2section, copy the Client ID andReset Secretand copy that string. - Add
http://localhost:3000/api/auth/callback/discordas a Redirect. You will need to add a second later to reflect where you live deploy the Dashboard. - Save the OAuth2 settings.
- Go to 'Bot' and
Add Bot - Click
Reset Tokenand copy the new value. - Go to
OAuth2->URL Generator. In the Scopes section selectbotand in the Bot Permissions section chooseAdministratoror the specific permission you wish to allow. - Copy the Generated URL and paste that into a browser tab. Select the correct discord server and authorize the bot to join.
- In the parent directory, run
npm i
- Change to the
/botdirectory - Copy the .env.sample and add in the details required.
- Change to the
/dashboarddirectory - copy the .env.sample to .env and add in the details required.
- Run
npm run postinstall - Run
npr run migrate(maybe required, maybe not)
- In the
/directory, runnpm run dev - Confirm that the bot is online in discord