From 5cacbbc82e0aa55350ac6c898f6aae96a39067f8 Mon Sep 17 00:00:00 2001 From: Zhengshou Lai Date: Tue, 7 Apr 2026 09:28:27 +0800 Subject: [PATCH] docs: fix bots.json configuration example - Correct file location to metabot/bots.json - Update JSON structure to feishuBots array format - Add defaultWorkingDirectory configuration --- README.md | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 5a1d47f..042b29a 100644 --- a/README.md +++ b/README.md @@ -152,20 +152,25 @@ npm run dev #### 5.2 配置 Metabot -创建 `bots.json` 文件: +在 `metabot/` 目录下创建 `bots.json` 文件: ```json { - "myclaude": { - "app_id": "cli_xxxxx", - "app_secret": "xxxxxxxxxxxxx" - } + "feishuBots": [ + { + "name": "myclaude", + "description": "Claude Code assistant bot", + "feishuAppId": "cli_xxxxx", + "feishuAppSecret": "xxxxxxxxxxxxx", + "defaultWorkingDirectory": "~/Documents/myResearch/myProjects/apaam/repo/myclaude" + } + ] } ``` -**建议路径**:`~/Documents/myResearch/myProjects/apaam/repo/metabot/bots.json` +**文件路径**:`metabot/bots.json`(与 myclaude 项目同级目录) -> 💡 **提示**:复制上述模板,替换 `cli_xxxxx` 和 `xxxxxxxxxxxxx` 为你的飞书应用凭证。 +> 💡 **提示**:复制上述模板,替换 `cli_xxxxx` 和 `xxxxxxxxxxxxx` 为你的飞书应用凭证。`defaultWorkingDirectory` 设置为你希望 Claude 操作的默认工作目录。 ### 6. 启动与使用