Discord Bot
Short tutorial of how to create a discord bot to use for our scripts.
Access the Discord Developer Portal
Open your web browser and go to the Discord Developer Portal
Ensure you are logged in to your Discord account.
Create a New Application
Click on the "New Application" button.
A modal will appear. Enter a name for your application (this will be the name associated with your bot) and click "Create".
Create a Bot User
In the left-hand menu of your application's page, click on "Bot".
Click the "Add Bot" button.
Confirm the action by clicking "Yes, do it!".
Obtain the Bot Token
You are now on your bot's page. Under the "Token" section, you will see a button that says "Reset Token".
Click the "Reset Token" button.
A pop-up will appear asking you to confirm the action. Click "Yes, do it!".
Your bot's token will now be displayed. Click the "Copy" button to copy the token to your clipboard.
Save this info to be used in our scripts.
Important Security Note: Your bot's token is like a password. Never share it with anyone. If your token is compromised, someone else could control your bot. If you accidentally share your token, immediately regenerate it by repeating steps 1-4. Regenerating the token will invalidate the old one.
Invite the Bot to Your Server
In the left-hand menu, click on "OAuth2" and then "URL Generator".
Under "Scopes", check the box next to "bot".
Under "Bot Permissions", select the permissions you want your bot to have in your server. Choose carefully, as these permissions determine what actions your bot can perform.
A URL will be generated at the bottom of the page. Copy this URL.
Open the copied URL in a new browser tab.
Select the server you want to add the bot to from the dropdown menu.
Click "Authorize".
Complete the CAPTCHA if prompted.
Your bot should now be in your server.
Last updated