Connect Moltbot to Discord
Add Moltbot (formerly Clawdbot) to your Discord server. Get AI assistance in channels, threads, or DMs.
- ✓Server Integration — Use in your existing Discord servers
- ✓Slash Commands — Native Discord command interface
- ✓Thread Support — Keep conversations organized
- ✓Rich Embeds — Beautiful formatted responses
- ✓DM Support — Private conversations with your bot
Setup Steps
Create a Discord Application
Go to the Discord Developer Portal and create a new application:
- • Visit discord.com/developers/applications
- • Click "New Application"
- • Name it (e.g., "Moltbot")
Create a Bot User
In your application settings:
- • Go to the "Bot" section in the sidebar
- • Click "Add Bot"
- • Copy the Bot Token (keep it secret!)
- • Enable "Message Content Intent" under Privileged Gateway Intents
Generate Invite Link
Create an OAuth2 URL to add the bot to your server:
- • Go to "OAuth2" → "URL Generator"
- • Select scopes:
bot,applications.commands - • Select permissions: Send Messages, Read Message History, Use Slash Commands
- • Copy the generated URL and open it to add bot to your server
Configure Moltbot
Add the Discord configuration to your config file:
{
"channels": {
"discord": {
"enabled": true,
"botToken": "YOUR_BOT_TOKEN",
"allowFrom": ["YOUR_DISCORD_USER_ID"],
"guildIds": ["YOUR_SERVER_ID"]
}
}
}Restart and Test
Restart Moltbot and test in Discord:
moltbot restartThen mention your bot or DM it in Discord to test the connection.
Enable Developer Mode:
Settings → App Settings → Advanced → Enable Developer Mode
Get User ID:
Right-click your username → Copy User ID
Get Server (Guild) ID:
Right-click server name → Copy Server ID
{
"channels": {
"discord": {
"enabled": true,
"botToken": "YOUR_BOT_TOKEN",
"allowFrom": ["USER_ID_1", "USER_ID_2"],
"guildIds": ["SERVER_ID"],
"allowChannels": ["CHANNEL_ID_1"],
"respondToMentions": true,
"respondToDMs": true,
"useEmbeds": true,
"maxMessageLength": 2000
}
}
}allowChannels— Restrict bot to specific channelsrespondToMentions— Only respond when @mentionedrespondToDMs— Allow direct messagesuseEmbeds— Use rich embed formatting
Bot is online but not responding?
Make sure "Message Content Intent" is enabled in Discord Developer Portal.
Slash commands not showing?
Commands may take up to an hour to sync. Try kicking and re-adding the bot.
Permission errors?
Re-invite the bot with the correct permissions using the OAuth2 URL generator.
Discord Connected!
Now configure more channels or enhance your bot with custom skills.