add-discord
Add Discord bot channel integration to NanoDex.
- License 许可
- MIT
- 所属仓库
- mbaker95/nanodex
- 最近更新
- 2026-03-12
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- add-discord
- description
- Add Discord bot channel integration to NanoDex.
02 资源文件 1
- 参考文档index.json519 B
03 SKILL.md 正文
Add Discord Channel
Use this skill when the user wants Discord as a primary or additional channel.
Discord is bundled in NanoDex core. The expected experience is:
- collect or create the Discord bot token
- register the main Discord channel
- verify NanoDex can respond
Do the work yourself. Only stop when the user must create the Discord bot, paste a token, choose a channel, or perform a Discord-side action.
User Experience Rules
- Do not ask the user to understand remotes, branches, or code layout.
- Do not tell the user to invoke another skill manually.
- Prefer one clear question at a time in normal conversation. Do not use
AskUserQuestion. - If the user does not already have a Discord bot token, guide them through the Discord Developer Portal plainly.
- On Windows or PowerShell hosts, prefer cross-platform commands or direct file edits over bash-only snippets.
Phase 1: Pre-flight
- Confirm the bundled Discord file exists:
src/channels/discord.ts. - Check whether
DISCORD_BOT_TOKENis already configured. - If token exists but registration is missing, skip to Phase 3.
Phase 2: Configure Discord Auth
Ask the user whether they already have a Discord bot token.
If not, guide them through the Discord Developer Portal:
- create an application
- create a bot for it
- generate or reset the bot token
- enable Message Content Intent
- optionally enable member-related intents if needed
- invite the bot to the target server with the required permissions
- paste the token back into the session
Once the token is available:
- write it to
.env - sync the runtime env if needed
Phase 3: Register the Main Channel
Ask where the user wants to talk to NanoDex:
- a main Discord text channel
- an additional trigger-based channel
Then help the user get the channel ID:
- enable Discord Developer Mode
- right-click the channel
- copy the channel ID
Register the chosen channel with npx tsx setup/index.ts --step register ...
Use a sensible default folder name such as discord_main for the main channel.
Phase 4: Verify
After registration:
- run
npm run buildif code or env changed - restart the NanoDex service/runtime if needed
- tell the user the exact first message to send
Example verification guidance:
- main channel: “Send any message in the registered Discord channel”
- additional channel: “Mention the bot or use the configured trigger”
If verification fails, inspect logs and fix the issue before falling back to a troubleshooting list.
Troubleshooting Priorities
If Discord does not respond, check these in order:
- the Discord channel code is installed
DISCORD_BOT_TOKENis present where NanoDex reads env- the Discord channel is registered
- the service/runtime is running
- the Discord bot has Message Content Intent and was invited to the right server/channel
If the bot connects but cannot read messages, fix intents before changing anything else.
Completion
Finish by telling the user:
- which Discord channel was registered
- whether it is the main chat
- what trigger to use
- whether a restart was needed
- the exact first message to send for a live test
04 同仓库更多 Skills
agent-browser
Browse the web for any task — research topics, read articles, interact with web apps, fill forms, take screenshots, extract data, and test web pages. Use whenever a browser would be useful, not just when the user explicitly asks.
x-integration
X (Twitter) integration for NanoClaw. Post tweets, like, reply, retweet, and quote. Use for setup, testing, or troubleshooting X functionality. Triggers on "setup x", "x integration", "twitter", "post tweet", "tweet".
use-local-whisper
Use when the user wants local voice transcription instead of OpenAI Whisper API. Switches to whisper.cpp running on Apple Silicon. WhatsApp only for now. Requires voice-transcription skill to be applied first.
update-skills
Check for and apply updates to installed skill branches from upstream.
update-nanoclaw
Efficiently bring upstream NanoClaw updates into a customized install, with preview, selective cherry-pick, and low token usage.
setup
Run initial NanoClaw setup. Use when user wants to install dependencies, authenticate messaging channels, register their main channel, or start the background services. Triggers on "setup", "install", "configure nanoclaw", or first-time setup requests.