1
Create the bot
- Go to the Discord Developer Portal
- Click New Application and name it
- Go to Bot and click Add Bot
- Enable MESSAGE_CONTENT under Privileged Gateway Intents
- Copy the bot token
- Use the OAuth2 URL Generator to invite the bot (select
botscope withSend MessagesandRead Message History)
2
Create the agent
discord_bot.py
3
Install dependencies
4
Set environment variables
5
Run