运行时依赖
安装命令
点击复制技能文档
Discord Doctor
Quick diagnosis and repAIr for Discord/Gateway avAIlability issues, OAuth 令牌 problems, and legacy Clawdis configuration conflicts.
Usage # 检查 状态 (diagnostic only) discord-doctor
# 检查 and auto-fix issues discord-doctor --fix
What It 检查s Discord 应用 - Is the Discord 桌面 应用 运行ning (optional, for 监控ing) Gateway Process - Is the Clawd机器人 gateway daemon 运行ning Gateway HTTP - Is the gateway 响应ing on port 18789 Discord Connection - Is the 机器人 actually connected to Discord (via clawd机器人 健康) Anthropic OAuth - Is your OAuth 令牌 valid or expired Legacy Clawdis - 检测s old launchd 服务s and config directories that cause conflicts Recent Activity - Shows recent Discord 会话s Auto-Fix Capabilities
When 运行 with --fix, it can:
启动 gateway if not 运行ning 安装 missing npm packages (like discord.js, strip-ansi) Re启动 gateway after fixing dependencies 移除 legacy launchd 服务 (com.clawdis.gateway.p列出) 备份 legacy config (moves ~/.clawdis to ~/.clawdis-备份) Common Issues & Fixes Issue Auto-Fix Action Gateway not 运行ning 启动s gateway on port 18789 Missing npm packages 运行s npm 安装 + 安装s specific package Discord disconnected Re启动s gateway to reconnect OAuth 令牌 expired Shows instructions to re-认证 Legacy launchd 服务 移除s old com.clawdis.gateway.p列出 Legacy ~/.clawdis config Moves to ~/.clawdis-备份 OAuth 令牌 Issues
If you see "访问 令牌 EXPIRED", 运行:
cd ~/Clawdis && npx clawd机器人 配置
Then select "Anthropic OAuth (Claude Pro/Max)" to re-认证.
Legacy Clawdis 迁移
If you 升级d from Clawdis to Clawd机器人, you may have legacy artifacts causing OAuth 令牌 conflicts:
Old launchd 服务: ~/库/Launch代理s/com.clawdis.gateway.p列出 Old config directory: ~/.clawdis/
运行 discord-doctor --fix to 清理 these up automatically.
Example 输出 Discord Doctor 检查ing Discord and Gateway 健康...
- Discord 应用
- Gateway Process
- Gateway HTTP
- Discord Connection
- Anthropic OAuth
- Legacy Clawdis
- Recent Discord Activity
Summary All 检查s passed! Discord is 健康y.