Discord
Status: Production ready — discord.py with slash commands and DM support.
Quick Setup
1) Create a Discord Application
- Go to Discord Developer Portal
- Click New Application and give it a name
- Go to Bot → Click Add Bot
- Under Token, click Copy (or Reset Token if needed)
Privileged Intents
Enable Message Content Intent under Bot → Privileged Gateway Intents if you want the bot to read message content in servers.
2) Configure the Token
Add to your .env file:
3) Invite the Bot to Your Server
- Go to OAuth2 → URL Generator
- Select scopes:
bot,applications.commands - Select permissions:
Send Messages,Read Message History - Copy the generated URL and open it
- Select your server and authorize
4) Start the Gateway
You should see:
5) Chat with Your Bot
- DM: Send a direct message to your bot
- Server: Mention the bot or use slash commands
Features
Direct Messages
- Private session per user
- Full conversation context
- No server required
Server Channels
- Mention the bot:
@YourBot what's the weather? - Each channel gets its own session
- Respects Discord permissions
Slash Commands
Coming soon — /ask, /remember, /forget
Configuration
Troubleshooting
"Privileged intent not enabled"
Enable Message Content Intent in the Developer Portal: Bot → Privileged Gateway Intents → Message Content Intent
Bot doesn't respond in servers
- Check bot has Read Messages and Send Messages permissions
- Make sure you're mentioning the bot
- Verify Message Content Intent is enabled
"Invalid token"
Your token is wrong or was reset. Get a new one from the Developer Portal.