Skip to content

Commit

Permalink
更新实例部署相关文档 (#14)
Browse files Browse the repository at this point in the history
* Update napcatqq.md

* Update napcatqq.md

* Update llonebot.md修改图片字体

修改AmiyaBot-LLOneBot.png中的字体为misans
  • Loading branch information
2436238575 authored Jan 31, 2025
1 parent 1d8be50 commit 8580685
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/guide/deploy/instances/llonebot.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
接下来,按照下图所示(看不清楚可以右键图片在新标签中打开),填写 LLOneBot 配置项,和配置 AmiayBot 实例。<br>
其中<span style="color: red">新消息上报格式</span>要选择<span style="color: red">消息段</span>。

<img src="../../../assets/console/llOneBotConfig.png" alt="image">
![AmiyaBot-LLOneBot](https://github.com/user-attachments/assets/5ead21c1-4e25-45ac-b51a-d60c37a37763)
47 changes: 46 additions & 1 deletion docs/guide/deploy/instances/napcatqq.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,48 @@
# NapCatQQ QQ群机器人

[官方文档](https://napneko.github.io/guide/NapCatQQ)
## 初略流程

1. 遵照其详细教程启动 NapCat 本体。
2. 进入 WebUI,启动需要的 HTTP/WS 服务端。
3. 配置 AmiyaBot 连接 NapCat。

## 启动方式

NapCat 有着众多启动方式,每种方式各有优点:

- **Shell 版本**:具有低内存、服务器部署简单的特点。
- **Framework 版本**:具有方便人机交互、便于窥屏的特点。

## 安装

略,详见 [NapCatQQ 官方文档](https://napneko.github.io/guide/install)

## 配置

### 通过 WebUI 配置

默认地址为 `0.0.0.0`,即监听所有地址。当配置了不可用的地址时将禁用 WebUI。

默认端口为 `6099`,当端口被设置为 `0` 时将禁用 WebUI。

启动后可在启动日志中看到形如 `[WebUi] WebUi Local Panel Url: http://127.0.0.1:6099/webui?token=xxxx` 的token信息。

也可打开 `webui.json` 文件,在其中找到token。

```webui.json
{
"host": "0.0.0.0", // WebUI 监听地址
"port": 6099, // WebUI 端口
"token": "xxxx", //登录密钥,默认是自动生成的随机登录密码
"loginRate": 3, //每分钟登录次数限制
}
```

访问 `http://ip:port/webui/`,然后进行以下操作:
1. 进入 QQ 登录,点击 `QRCode` 进行二维码登录。
2. 登录成功后,进入网络配置添加以下配置。
1. HTTP 配置如下图
![AmiyaBot-NapCatQQ-HTTP](https://github.com/user-attachments/assets/aae0f255-8348-4ddb-a338-1d466f2b0ba5)
2. websocket 配置如下图
![AmiyaBot-NapCatQQ-WS](https://github.com/user-attachments/assets/96369055-f87a-4079-90df-fb380d3356fb)
3. 配置完成后,点击确认即可。

0 comments on commit 8580685

Please sign in to comment.