Agent DiscordBot for Openclaw

A robust TypeScript CLI that enables AI agents to interact with Discord servers using professional bot tokens for automated communication and CI/CD workflows.

devxoul
v1.10.5
Mar 6, 2026
0
1.2k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install agent-discordbot

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install agent-discordbot using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Agent DiscordBot?

Agent DiscordBot is a specialized command-line tool designed to bridge the gap between AI agents and Discord communities. Unlike tools that rely on fragile user tokens, this skill utilizes standard Discord Bot tokens, ensuring stability for server-side integrations and automated tasks. It is a core component of the Openclaw Skills ecosystem, providing a programmatic interface for agents to send messages, manage threads, and upload files.

By prioritizing JSON output, the tool allows AI agents to accurately parse server states and message histories. It supports sophisticated multi-bot management, allowing developers to switch between different bot identities for specific tasks like deployment alerts or community moderation. The integration of a persistent memory system ensures that agents retain context across sessions, significantly improving efficiency.

Agent DiscordBot Use Cases

  • Automating CI/CD deployment notifications and system alerts directly to Discord channels.
  • Enabling AI agents to moderate community discussions and respond to user queries using Openclaw Skills.
  • Creating automated server summaries and snapshots for project stakeholders.
  • Orchestrating complex multi-bot environments where different bots handle specific administrative roles.

How Agent DiscordBot Works

  1. Create an application in the Discord Developer Portal and generate a bot token with the required permissions.
  2. Use the CLI to set the bot token, which validates the credentials against the Discord API before secure local storage.
  3. Invite the bot to your server using the generated OAuth2 URL and enable Message Content Intents if reading message data is required.
  4. Execute discovery commands such as channel list or server list to populate the agent's persistent memory file.
  5. Trigger automated actions like sending messages, creating threads, or taking server snapshots through the AI agent interface.

Agent DiscordBot Setup

To get started with this skill, install the messenger package and configure your bot token:

# Install the package
npm install -g agent-messenger

# Configure your Discord Bot token
agent-discordbot auth set your-bot-token

# Verify authentication status
agent-discordbot auth status

# Send a test message
agent-discordbot message send <channel-id> "Hello from Openclaw Skills!"

Agent DiscordBot Data Schema & Taxonomy

The skill manages data across two primary files located in ~/.config/agent-messenger/ to optimize the performance of Openclaw Skills:

File Format Purpose
discordbot-credentials.json JSON Stores bot tokens, active server IDs, and bot profile metadata.
MEMORY.md Markdown A persistent memory file containing discovered IDs, user aliases, and server-specific preferences.

All CLI commands output JSON by default to ensure compatibility with AI data processing workflows.

Agent DiscordBot Advanced Features

  • Multi-bot management system for storing and switching between multiple bot identities using unique identifiers.
  • Full server snapshot capability providing JSON-structured context of channels, members, and recent messages in a single command.
  • Persistent memory architecture that allows agents to skip repetitive discovery calls by storing known IDs in a structured Markdown format.
  • Support for privileged gateway intents, enabling verified bots to process message content in large-scale servers.
  • File upload and management tools for sending reports or logs directly to Discord channels.

SKILL.md


Loading

Related Openclaw Skills

Featured*