Home Tutorials Categories Skills About
ZH EN JA KO
🎮

Discord

Social Messaging & Social

Install Command

npx clawhub@latest install discord

Installation Guide

1
Check Environment

Make sure Node.js 22+ and OpenClaw are installed. Run openclaw --version in your terminal to verify.

2
Run Installation

Run the install command above in your terminal. ClawHub will automatically download and install Discord to the ~/.openclaw/skills/ directory.

3
Verify Installation

Run openclaw skills list to check your installed skills and confirm Discord appears in the list.

4
Configure (Optional)

Follow the configuration instructions in the description below to add skill settings to ~/.config/openclaw/openclaw.json5.

Manual Installation: Copy the Skill folder to ~/.openclaw/skills/ or the skills/ directory in your project root. Make sure the folder contains a SKILL.md file.
Bot Deployment Multi-Server Command Handling

Detailed Description

The Discord skill lets you deploy OpenClaw as a powerful Discord bot, providing AI interaction services in your Discord community.

Core Features

  • Message Response: Listen to channel messages and auto-reply, triggered by @mention or prefix commands
  • Slash Commands: Register custom Discord Slash commands that users can trigger from the / menu
  • Multi-Server Support: A single bot can serve multiple Discord servers simultaneously
  • Embed Messages: Send rich-format Embed messages with titles, descriptions, fields, colors, and more
  • Role Permissions: Control bot feature access based on user roles

Configuration

You need to create an Application in the Discord Developer Portal and obtain a Bot Token.

{
  skills: {
    discord: {
      botToken: "your-bot-token",
      prefix: "!",
      allowedServers: [],  // Empty array = all servers
      adminRoles: ["Admin", "Moderator"]
    }
  }
}

Use Cases

  • Community Q&A bot: Automatically answer member questions
  • Content moderation assistant: Detect inappropriate content and alert admins
  • Translation assistant: Automatically translate messages in multilingual communities
  • Information queries: Community members query information via Slash commands