- Ensure you have Developer Mode enabled in your Discord settings (under Advanced)
- Go to: https://discord.com/developers/applications
- Create a new application using the "New Application" button
- On the left sidebar, click OAuth2 -> URL Generator
- Under Scopes, select
applications.commands
andbot
scopes - Under Bot Permissions, select Send Messages (in the middle column)
- Copy the generated URL and use it to add your bot to the desired testing server
- On the left sidebar, click Bot to go to the bot's settings and click Reset Token. Copy the generated token; you will only see it once!
- Copy the .env.example file into a file named .env and paste your token after
DISCORD_TOKEN=
in the new .env file - In Discord, right-click the icon for your desired testing server and select Copy Server ID
- Copy allowed_servers.example.json into a file named allowed_servers.json, and edit it to have your server ID instead of the example server ID
After this, you should be able to run the application and use it from your Discord server.