docs: fix bots.json configuration example
- Correct file location to metabot/bots.json - Update JSON structure to feishuBots array format - Add defaultWorkingDirectory configuration
This commit is contained in:
@@ -152,20 +152,25 @@ npm run dev
|
|||||||
|
|
||||||
#### 5.2 配置 Metabot
|
#### 5.2 配置 Metabot
|
||||||
|
|
||||||
创建 `bots.json` 文件:
|
在 `metabot/` 目录下创建 `bots.json` 文件:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"myclaude": {
|
"feishuBots": [
|
||||||
"app_id": "cli_xxxxx",
|
{
|
||||||
"app_secret": "xxxxxxxxxxxxx"
|
"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. 启动与使用
|
### 6. 启动与使用
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user