add-discord

Integrate Discord as a NanoClaw I/O channel for messaging.

7|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/gunabot/nanoclaw --skill add-discord
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-discord
Source: https://github.com/gunabot/nanoclaw/tree/main/.claude/skills/add-discord
Command: npx skills add https://github.com/gunabot/nanoclaw --skill add-discord

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables Discord as a NanoClaw channel, allowing Claude to exchange messages with Discord users alongside existing channels in a secure, containerized workflow.

Core Features & Use Cases

  • Discord as a channel: Works alongside WhatsApp, or as a Discord-only integration.
  • Scope IDs: Messages are addressed as discord:<guildId>:<channelId> for guild channels or discord:dm:<userId> for DMs.
  • Storage: Uses the same store/messages.db in the SQLite database.
  • Typing indicators: Typing indicators are supported and responses are sent for allowed messages.
  • Use Case: A user messages the bot in a DM or in a specified Discord channel and Claude responds accordingly.

Quick Start

  • Export environment variables:
    • DISCORD_TOKEN (required)
    • DISCORD_MAIN_CHANNEL_ID (recommended)
    • DISCORD_ALLOWED_GUILD_IDS (optional CSV)
    • DISCORD_ALLOWED_CHANNEL_IDS (optional CSV)
  • Run the bot:
    • npm run dev
  • Verify:
    • DM messages are responded to.
    • Messages in the main channel are responded to.
    • Other channels are only accepted when allowlisted.

Frequently Asked Questions about add-discord

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a Discord channel to a chatbot for real-time messaging?

You can add Discord as a messaging channel by setting the DISCORD_TOKEN and DISCORD_MAIN_CHANNEL_ID environment variables, enabling Message Content Intent in the Discord app, and running npm dev.

Can I restrict a Discord bot to only respond in specific guild channels or DMs?

You can restrict bot responses by configuring optional CSV allowlists via DISCORD_ALLOWED_GUILD_IDS and DISCORD_ALLOWED_CHANNEL_IDS environment variables, ensuring only approved guilds and channels receive responses.

How are Discord direct messages and guild channel conversations stored?

Discord DMs and guild channel messages are stored in the shared SQLite database at store/messages.db, addressed using scope IDs like discord:dm:userId for DMs and discord:guildId:channelId for guild channels.

Do I need to enable Message Content Intent for a Discord bot to read channel messages?

Yes, enabling Message Content Intent in the Discord application settings is required for the bot to read message content from guild channels and DMs, allowing it to process and respond to user messages.

Why does my Discord bot only respond in the main channel and ignore other servers?

The bot ignores other servers because they are not included in the optional allowlists. You must add the desired server and channel IDs to DISCORD_ALLOWED_GUILD_IDS and DISCORD_ALLOWED_CHANNEL_IDS to enable responses.

Does the Discord integration support typing indicators while the bot generates a response?

Yes, the Discord channel integration supports typing indicators, displaying the bot's typing status while it processes allowed messages and prepares responses for users in both DMs and guild channels.