- 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
OAuth2
section, copy the Client ID andReset Secret
and copy that string. - Add
http://localhost:3000/api/auth/callback/discord
as 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 Token
and copy the new value. - Go to
OAuth2
->URL Generator
. In the Scopes section selectbot
and in the Bot Permissions section chooseAdministrator
or 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
/bot
directory - Copy the .env.sample and add in the details required.
- Change to the
/dashboard
directory - 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