Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Commit

Permalink
📝 更新README
Browse files Browse the repository at this point in the history
  • Loading branch information
CMHopeSunshine committed Nov 30, 2023
1 parent b925133 commit 0461114
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ nb adapter install nonebot-adapter-villa

配置 Bot 帐号列表,每个 bot 有 3 个必填配置,可前往[「大别野开放平台」](https://open.miyoushe.com/#/login)申请,取得以下配置:

- `bot_id`: 机器人id,以`bot_`开头
- `bot_id`: 机器人 id,以`bot_`开头
- `bot_secret`: 机器人密钥
- `pub_key`: 加密和验证所需的 pub_key (请使用开放平台中的复制按钮而不是手动复制)
- `test_villa_id`: Bot 未上线时填写调试别野的id,已上线可不填或填 `0`

此外,还要根据连接方式填写额外配置:

Expand Down Expand Up @@ -76,8 +77,6 @@ VILLA_BOTS='

### Websocket 连接 (官方测试中)

- `test_villa_id`: 未上线时填写调试别野的id,已上传公域 bot 填写 `0`

使用 websocket 方式连接时,驱动器需要 `ForwardDriver`,参考 [driver](https://v2.nonebot.dev/docs/next/advanced/driver#%E9%A9%B1%E5%8A%A8%E5%99%A8%E7%B1%BB%E5%9E%8B) 配置项。

websocket 配置完整示例:
Expand Down

0 comments on commit 0461114

Please sign in to comment.