disgord
A simple Discord bot in Go.
Instructions
Create your own application in the Discord Developer Portal.
In the "Bot" tab, click on "Add Bot", then generate a new token.
Privileged Intents
This bot requires the following Privileged Gateway Intents to be enabled in the "Bot" tab of your application:
- Server Members Intent: Needed for the Web UI to correctly display users in voice channels.
- Message Content Intent: Needed for the bot to process prefix commands (e.g.,
!play).
Now, do:
cp .env.example .env
And use your editor of choice to fill in all required variables.
Your can use the following link to add your bot to a server (replace <applicationID> first):
https://discord.com/api/oauth2/authorize?client_id=<applicationID>&permissions=17825792&scope=bot
OAuth2 permissions
If you want to change the bot permissions, you can visit this page and generate a custom link.