Note, that only a server admin can bring in bots. Perform the following steps.
- Initial Bot Setup Go to Discord https://discord.com/developers/applications
- Click on New Application.
- Write the name of the application and click create.
- Now click on bot and build one
- Go To OAuth2 and Enter the scope as Bot.
- Then enter Bot Permissions as required.
- Copy the authorisation link generated. It will redirect to a page where you can add your bot to a server.
- Copy the TOKEN and add it as DISCORD_BOT_TOKEN.
Prefix is used as a best practice to help bots better understand bot commands. In our workshop, PREFIX = ;;
- Enable developer mode by going into
User Settings > Appearance > Enable Developer Mode
. - Create a new text channel.
- Right-click on the channel and select Copy ID.
- Use this value as DISCORD_CHANNEL_NUMBER.