Skip to content

Commit 81e8d0d

Browse files
authored
Update configuration.md
1 parent a908999 commit 81e8d0d

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

docs/zh-CN/guide/configuration.md

+6-8
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
::: details 配置 Koishi
66

7-
### 1. 在 Koishi 插件市场搜索并安装 adapter-onebot
7+
#### 1. 在 Koishi 插件市场搜索并安装 adapter-onebot
88

99
![](../../asset/img/configuration/koishi-install-onebot.png)
1010

11-
### 2. 配置 adapter-onebot
11+
#### 2. 配置 adapter-onebot
1212

1313
这里以 WS 反向连接为例
1414

@@ -22,7 +22,7 @@ protocol 选择 `ws-reverse`
2222

2323
![](../../asset/img/configuration/koishi-onebot-setting.png)
2424

25-
### 3. 配置完成后,LLOneBot 添加 WS 反向地址
25+
#### 3. 配置完成后,LLOneBot 添加 WS 反向地址
2626

2727
adapter-onebot 的 WS 反向地址为 `ws://127.0.0.1:5140/onebot`
2828

@@ -35,17 +35,15 @@ adapter-onebot 的 WS 反向地址为 `ws://127.0.0.1:5140/onebot`
3535

3636
::: details 配置 NoneBot
3737

38-
### 1. 配置 NoneBot
38+
#### 1. 配置 NoneBot
3939

4040
这里假设你已经安装了 Onebot 适配器
4141

42-
默认情况 NoneBot 是启用了反向 ws 的,可能是默认配置问题,需要配置 token 才能正常连接
43-
44-
修改 NoneBot 配置文件 `.env`,添加 `ONEBOT_ACCESS_TOKEN=你的token`,token 需要和 LLOneBot 配置的 token 一致
42+
默认情况 NoneBot 是启用了反向 ws 的,如果出现 403,可能是默认配置问题,需要配置 token 才能正常连接。这时需修改 NoneBot 配置文件 `.env`,添加 `ONEBOT_ACCESS_TOKEN=你在 LLOneBot 配置的 token`
4543

4644
然后启用 NoneBot,可以看到 NoneBot 输出的端口号,如 `8080`
4745

48-
### 2. 配置 LLOneBot
46+
#### 2. 配置 LLOneBot
4947

5048
![](../../asset/img/configuration/llonebot-nonebot-rws-setting.png)
5149

0 commit comments

Comments
 (0)