mirror of
https://github.com/hanzoai/bot.git
synced 2026-11-01 18:02:28 +00:00
The docs said ~/.hanzo-bot/hanzo-bot.json (and ~/.hanzo-bot-<profile>, hanzo-bot.plugin.json), which nothing reads: src/config/paths.ts resolves ~/.bot, bot.json and ~/.bot-<profile>, and plugins ship bot.plugin.json. Every such path in docs/ now names what the code opens. Co-authored-by: Hanzo Dev <[email protected]>
1.4 KiB
1.4 KiB
read_when, summary, title, x-i18n
| read_when | summary | title | x-i18n | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
`hanzo-bot doctor` 的 CLI 参考(健康检查 + 引导式修复) | doctor |
|
hanzo-bot doctor
Gateway 网关和渠道的健康检查 + 快速修复。
相关内容:
示例
hanzo-bot doctor
hanzo-bot doctor --repair
hanzo-bot doctor --deep
注意事项:
- 交互式提示(如钥匙串/OAuth 修复)仅在 stdin 是 TTY 且未设置
--non-interactive时运行。无头运行(cron、Telegram、无终端)将跳过提示。 --fix(--repair的别名)会将备份写入~/.bot/bot.json.bak,并删除未知的配置键,同时列出每个删除项。
macOS:launchctl 环境变量覆盖
如果你之前运行过 launchctl setenv BOT_GATEWAY_TOKEN ...(或 ...PASSWORD),该值会覆盖你的配置文件,并可能导致持续的"未授权"错误。
launchctl getenv BOT_GATEWAY_TOKEN
launchctl getenv BOT_GATEWAY_PASSWORD
launchctl unsetenv BOT_GATEWAY_TOKEN
launchctl unsetenv BOT_GATEWAY_PASSWORD