Add Discord Channel (NanoClaw)
Copies, registers, and validates the Discord bot adapter for a NanoClaw project, then wires up credentials and your DM channel.
Dev & CodingIntermediate★ 30,840⑂ 12,826AI score 7/10Last updated: Sep 23, 2026
What it does
- Pulls
src/channels/discord.tsand its registration test from thechannelsbranch intosrc/channels/. - Appends the single self-registration import to
src/channels/index.ts(idempotent — skipped if present). - Installs
@chat-adapter/discord@4.29.0at an exact pinned version, then runspnpm run buildand the registration test. - Walks you through the Discord Developer Portal, takes the Bot Token, and derives Application ID, Public Key, and your user ID from one
GET /oauth2/applications/@mecall before writing them to.env. - Restarts the service and opens your DM channel to produce a
discord:@me:<channelId>conversation address. - Ships a troubleshooting section for rejected tokens, 401s, missing Message Content Intent, and drifted installs.
Who it's for
- NanoClaw users who want to talk to their agent through Discord.
- TypeScript/pnpm developers who prefer deterministic, re-runnable integration steps.
- Anyone tired of hand-copying App IDs and public keys from the Developer Portal.
Examples
- Mid-
/setup, ask "add a Discord channel" and the skill runs copy → register → pin dep → build → test. - Bot is online but silent: follow the troubleshooting path to check Message Content Intent and shared-server membership.
- After resetting a token, refresh
.envvalues and restart withbash setup/lib/restart.sh.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/nanocoai/nanoclaw/HEAD/.claude/skills/add-discord/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the .claude/skills/add-discord folder from the GitHub repo nanocoai/nanoclaw into my ~/.claude/skills/add-discord/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/nanocoai/nanoclaw.git && mkdir -p ~/.claude/skills && cp -r nanoclaw/.claude/skills/add-discord ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repo:
git clone https://github.com/nanocoai/nanoclaw.git. - Create the skills folder:
mkdir -p ~/.claude/skills. - Copy the skill:
cp -r nanoclaw/.claude/skills/add-discord ~/.claude/skills/(skip if you work inside the NanoClaw repo, where it already lives in.claude/skills/). - Make sure Node.js and pnpm are installed (
pnpm -v). - Start Claude Code from your NanoClaw project directory and ask it to "add the Discord channel".
- Follow the prompts to create the bot and paste the Bot Token — the remaining credentials are derived automatically and stored in
.env.
View source on GitHub ↗License: MIT