You need to supply your own
- Discord Bot Token (found at Discord Developer Portal)
- Client ID (found once you create a Discord Application)
- Guild ID (found when you enable Developer Mode in Discord Settings in the Main Client then copy your server, which is also known as a guild ID)
Other than that, this Dockerfile is usable OOTB (out of the box).
To create the bot, you will want to go to the Discord Developer Portal. To create an application, which we want to do, click, New Application
.
Now, once we have it created, we will want to create the bot. We do this by heading over to the Bot
tab (found on the left sidebar of the site) and clicking Add Bot
.
Now we will add the permissions we need. Head on over to OAuth2 -> URL Generator
. The below picture will tell you what permissions we will need.
Be sure to copy the link!
Next, we will head over to OAuth2 -> General
. Click Add Redirect
. Paste the link copied earlier into the box. Then paste it into your search bar in a browser and hit return.
Now we want to add our bot to the server of choice. Follow the next images to do so.
Now, we want to reset the bot token. Head on over to Bot
. Click Reset Token
.
Copy it, and paste it into the Enviornment Variable spot for your hosting provider. Then, copy the Bot ID by right-clicking on its profile and clicking Copy ID
, do so with the server you added it into as well and pasting those into the respective Enviornment Variable spots.
Now you can use Railway to sign up for the best Cloud Hosting Service, so you can deploy your Discord Bot 24/7 (until you run out of your $5.00 (USD) credits for the month). CONGRATS! You just deployed your Discord Bot! I hope you enjoy it!
- Go to
Server Settings
- Go to
Integrations
- Select the Bot you used for this Dockerfile
- For every slash command:
- Disallow permissions for
@everyone
- Re-allow permissions for
@everyone
- You should be good!