[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 1.52 KB

discordBot.md

File metadata and controls

14 lines (12 loc) · 1.52 KB

How to Setup the Discord Bot

In order to use this bot in Discord, you have to create a bot account and invite it to your server. This guide will show you how to do that.

  1. Go to the Discord Developer Portal and click New Application.
  2. Enter a name for your bot, like AutoRSA and click Create.
  3. Click on Bot in the left sidebar, then give it a name and profile picture if you want.
  4. Under Privileged Gateway Intents, enable Message Content Intent.
  5. Click on OAuth2 in the left sidebar, then URL Generator. Then scroll down to OAuth2 URL Generator.
  6. Under Scopes select bot. Then underneath that in Bot Permissions select Send Messages and Read Message History.
  7. Under Integration Type, select Guild Install. Then copy the link in the Scopes section and paste it into your browser. Select the server you want to add the bot to and click Authorize. The bot should then appear in your server!
  8. Click on Bot in the left sidebar. Under Token, click Reset Token. Copy the new token and paste it into your .env file as DISCORD_TOKEN.
  9. To get the Channel ID, go to Advanced in Discord settings, then turn on Developer Mode. Then right click on the channel for the bot and click Copy ID. Paste the ID into your .env file as DISCORD_CHANNEL. If you want to turn off Developer Mode, you can do so, but it isn't necessary.

If you need a more visual guide, one user found this guide helpful.