add-discord

Enable Discord as a NanoClaw channel (works alongside WhatsApp or Discord-only).

7 stars

Best use case

add-discord is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Enable Discord as a NanoClaw channel (works alongside WhatsApp or Discord-only).

Teams using add-discord should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/add-discord/SKILL.md --create-dirs "https://raw.githubusercontent.com/gunabot/nanoclaw/main/.claude/skills/add-discord/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/add-discord/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How add-discord Compares

Feature / Agentadd-discordStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Enable Discord as a NanoClaw channel (works alongside WhatsApp or Discord-only).

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Add Discord Support

This skill reflects the current Discord integration as implemented.

## 1) What works now

- Discord runs alongside WhatsApp, or Discord-only.
- Scope IDs:
  - Guild channel: `discord:<guildId>:<channelId>`
  - DM: `discord:dm:<userId>`
- Messages are stored in the same SQLite DB as WhatsApp (`store/messages.db`).
- Typing indicators are supported.
- Responses are sent for **all allowed messages** (no mention requirement in the current code).

## 2) Configuration

Set these environment variables (e.g. in `.env`):

- `DISCORD_TOKEN` (required)
- `DISCORD_MAIN_CHANNEL_ID` (recommended)
- `DISCORD_ALLOWED_GUILD_IDS` (optional CSV)
- `DISCORD_ALLOWED_CHANNEL_IDS` (optional CSV)

Allowlist behavior:
- If allowlists are **empty**, Discord only allows DMs + `DISCORD_MAIN_CHANNEL_ID`.
- If allowlists are set, only those guilds/channels are accepted.

## 3) Behavior summary

- **DMs**: always allowed and responded to.
- **Main channel** (`DISCORD_MAIN_CHANNEL_ID`): allowed and responded to.
- **Other channels**: allowed only if allowlisted; responses are sent for all allowed messages.

## 4) Discord Developer Portal setup (quick checklist)

- Create a Discord application + bot
- Enable **Message Content Intent**
- Invite the bot to your server with permissions:
  - View Channels / Read Messages
  - Send Messages
  - Read Message History
  - (Optional) Send Typing Indicators

## 5) Testing

```bash
export DISCORD_TOKEN="..."
export DISCORD_MAIN_CHANNEL_ID="123..."
# Optional
export DISCORD_ALLOWED_GUILD_IDS="123...,456..."
export DISCORD_ALLOWED_CHANNEL_IDS="123...,456..."

npm run dev
```

Verify:
- Send a DM → bot responds.
- Send a message in the main channel → bot responds.
- Send a message in an allowlisted channel → bot responds.

## 6) Troubleshooting

- **Bot connects but doesn’t receive messages**
  - Ensure Message Content intent is enabled.
  - Ensure the bot has permissions to view the channel.
  - Check allowlists.

- **No responses in a guild channel**
  - If no allowlists are set, only the main channel is accepted.
  - Ensure the channel is allowlisted or set as `DISCORD_MAIN_CHANNEL_ID`.

- **`Missing Access` / `Forbidden` errors**
  - The bot lacks permissions in that channel.
  - The bot may not be in the server.

- **DMs not working**
  - The user might have server privacy settings disallowing DMs.

Related Skills

setup

7
from gunabot/nanoclaw

Run initial NanoClaw setup. Use when user wants to install dependencies, authenticate WhatsApp, register their main channel, or start the background services. Triggers on "setup", "install", "configure nanoclaw", or first-time setup requests.

setup-linux

7
from gunabot/nanoclaw

Set up NanoClaw on Linux (Ubuntu/Debian recommended). Installs deps, configures .env, optional WhatsApp auth, and optional systemd service.

debug

7
from gunabot/nanoclaw

Debug container agent issues. Use when things aren't working, container fails, authentication problems, or to understand how the container system works. Covers logs, environment variables, mounts, and common issues.

customize

7
from gunabot/nanoclaw

Add new capabilities or modify NanoClaw behavior. Use when user wants to add channels (Telegram, Slack, email input), change triggers, add integrations, modify the router, or make any other customizations. This is an interactive skill that asks questions to understand what the user wants.

add-gmail

7
from gunabot/nanoclaw

Add Gmail integration to NanoClaw. Can be configured as a tool (agent reads/sends emails when triggered from WhatsApp) or as a full channel (emails can trigger the agent, schedule tasks, and receive replies). Guides through GCP OAuth setup and implements the integration.

/add-codex

7
from gunabot/nanoclaw

Add Codex CLI as an alternative NanoClaw agent runtime.

discord-bot-architect

31392
from sickn33/antigravity-awesome-skills

Specialized skill for building production-ready Discord bots. Covers Discord.js (JavaScript) and Pycord (Python), gateway intents, slash commands, interactive components, rate limiting, and sharding.

Bot DevelopmentClaude

discord-automation

31392
from sickn33/antigravity-awesome-skills

Automate Discord tasks via Rube MCP (Composio): messages, channels, roles, webhooks, reactions. Always search tools first for current schemas.

Social Media ManagementClaude

discord-bot-architect

24269
from davila7/claude-code-templates

Specialized skill for building production-ready Discord bots. Covers Discord.js (JavaScript) and Pycord (Python), gateway intents, slash commands, interactive components, rate limiting, and sharding.

discord

7060
from civitai/civitai

Post announcements and messages to Discord channels. Use when sharing updates, releases, or team communications.

discord-voice

3891
from openclaw/skills

Real-time voice conversations in Discord voice channels with Claude AI

discord-admin-elite

3891
from openclaw/skills

Build, harden, and scale elite Discord servers with a practical admin playbook: security baseline, role/permission architecture, onboarding, moderation ops, engagement systems, and analytics-driven iteration. Use when designing a new server, auditing an existing one, fixing chaos, or preparing for growth.