用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/marktoda/everclaw --skill add-channel-discord命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Set up WhatsApp as a messaging channel — QR code authentication, configuration, and verification
Set up Gmail as a messaging channel — Google OAuth2, credentials, token exchange, and verification
Set up Slack as a messaging channel — app creation, Socket Mode, dual tokens, and verification
基于 SOC 职业分类
正在显示 SKILL.md
| name | add-channel-discord |
| description | Set up Discord as a messaging channel — bot creation, gateway intents, and verification |
Walk the user through connecting a Discord bot to everclaw. This skill is standalone — run it from /setup or anytime to add Discord.
Work through each phase in order. Use TaskCreate to track progress. Be autonomous: detect what's already done, only ask questions when a real choice is needed. NEVER echo secrets to the terminal or pass them as bash arguments — use the Read and Edit tools to modify .env.
Check .env exists in the project root. If not, tell the user to run /setup first and stop.
Read .env and check if CHANNEL_DISCORD is already set.
AskUserQuestion:
Discord is already configured (
CHANNEL_DISCORDis set in.env). What would you like to do?
- Keep it — Skip to verification
- Reconfigure — Replace with a new bot token
Walk the user through creating a Discord bot:
Tell the user:
Create a Discord bot application:
- Go to the Discord Developer Portal
- Click New Application and give it a name
- Go to the Bot section in the left sidebar
- Click Reset Token (or Add Bot if it's a new app) and copy the token
Important — Enable these Gateway Intents (same page, scroll down):
- ✅ Message Content Intent
- ✅ Server Members Intent (optional but recommended)
Without Message Content Intent enabled, the bot cannot read message text and will silently ignore all messages.
Use AskUserQuestion to collect the bot token:
Paste your Discord bot token.
Append CHANNEL_DISCORD=<token> to .env using the Edit tool. If reconfiguring, replace the existing line.
Help the user invite the bot to their server. Tell them:
Invite the bot to your Discord server:
- In the Developer Portal, go to OAuth2 → URL Generator
- Select scopes: bot
- Select permissions: Send Messages, Read Message History
- Copy the generated URL and open it in your browser
- Select the server to add the bot to and authorize
Detect the deployment method and tell the user how to restart:
docker-compose.yml exists in the project root.docker compose restart (or docker compose up --build if not running)."node src/index.ts."Tell the user to restart now and wait for them to confirm it's running. Look for "Discord adapter started" in the logs.
Check if ALLOWED_CHAT_IDS is already configured in .env (uncommented and non-empty).
If not configured (first channel):
Walk the user through discovery mode:
discord:123456789. Copy this value."AskUserQuestion to collect the chat ID.Edit tool to set ALLOWED_CHAT_IDS=<chat_id> in .env. If the line is commented out, uncomment and set it.If already configured (adding another channel):
AskUserQuestion to collect the chat ID.Edit tool to append the new ID to the existing ALLOWED_CHAT_IDS value (comma-separated).After updating, tell the user to restart again (same instructions as Phase 3).
ALLOWED_CHAT_IDS contains the right prefixed IDTell the user they can add more channels later with /add-channel-telegram, /add-channel-slack, /add-channel-whatsapp, or /add-channel-gmail.