agent-discordbot
Interact with Discord servers using bot tokens - send messages, read channels, manage reactions
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/devxoul/agent-discordbotAgent DiscordBot
A TypeScript CLI tool that enables AI agents and humans to interact with Discord servers using bot tokens. Unlike agent-discord which extracts user tokens from the desktop app, agent-discordbot uses standard Discord Bot tokens for server-side and CI/CD integrations.
Quick Start
# Set your bot token
agent-discordbot auth set your-bot-token
# Verify authentication
agent-discordbot auth status
# Send a message
agent-discordbot message send 1234567890123456789 "Hello from bot!"
# List channels
agent-discordbot channel list
Authentication
Bot Token Setup
agent-discordbot uses Discord Bot tokens which you create in the Discord Developer Portal:
# Set bot token (validates against Discord API before saving)
agent-discordbot auth set your-bot-token
# Set with a custom bot identifier
agent-discordbot auth set your-bot-token --bot deploy --name "Deploy Bot"
# Check auth status
agent-discordbot auth status
# Clear stored credentials
agent-discordbot auth clear
Getting a Bot Token
- Go to discord.com/developers/applications
- Click New Application, give it a name, and create
- Go to Bot in the left sidebar
- Click Reset Token (or Copy if the token is still visible)
- Copy the token and store it securely
Inviting the Bot to a Server
After creating the application:
- Go to OAuth2 > URL Generator in the left sidebar
- Under Scopes, select
bot - Under Bot Permissions, select the permissions your bot needs (Send Messages, Read Message History, etc.)
- Copy the generated URL and open it in your browser
- Select the server and authorize
Message Content Privileged Intent
Bots in 100 or more servers require verification (you can apply once you reach 75+ servers), and verified bots must apply for access to the Message Content intent. Enable it to read message content:
- Go to discord.com/developers/applications
- Select your application
- Go to Bot in the left sidebar
- Under Privileged Gateway Intents, enable Message Content Intent
- Save changes
Without this, verified bots receive empty content fields (DMs and mentions are exempt).
Multi-Bot Management
Store multiple bot tokens and switch between them:
# Add multiple bots
agent-discordbot auth set deploy-bot-token --bot deploy --name "Deploy Bot"
agent-discordbot auth set alert-bot-token --bot alert --name "Alert Bot"
# List all stored bots
agent-discordbot auth list
# Switch active bot
agent-discordbot auth use deploy
# Use a specific bot for one command (without switching)
agent-discordbot message send 1234567890123456789 "Alert!" --bot alert
# Remove a stored bot
agent-discordbot auth remove deploy
The --bot <id> flag is available on all commands to override the active bot for a single invocation.
Memory
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-devxoul-agent-discordbot": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
vibe-notionbot
Interact with Notion workspaces using official API - manage pages, databases, blocks, users, and comments
vibe-notion
Interact with Notion using the unofficial private API - pages, databases, blocks, search, users, comments
agent-discord
Interact with Discord servers - send messages, read channels, manage reactions
agent-slackbot
Interact with Slack workspaces using bot tokens - send messages, read channels, manage reactions
agent-slack
Interact with Slack workspaces - send messages, read channels, manage reactions