-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
shengan
committed
May 29, 2024
1 parent
a7a4bc4
commit 82f5a31
Showing
6 changed files
with
27 additions
and
34 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,27 @@ | ||
# qqbot | ||
QQ 机器人 | ||
## 介绍 | ||
- 使用的是 [Lagrange.OneBot](https://github.com/LagrangeDev/Lagrange.Core) | ||
- 开箱即用,使用 docker 一键启动 | ||
|
||
## Lagrange.OneBot | ||
- 使用 docker 一键启动 | ||
## 首次启动 | ||
```bash | ||
docker compose up | ||
``` | ||
|
||
然后扫码登录即可,会登录到 linux 平台 | ||
|
||
## 测试 | ||
- 进群发送 python 即可看到回复 | ||
- 所有关键字以及自动回复的消息均存于 [`ws/botmsg.txt`](ws/botmsg.txt) 文件中 | ||
- 修改了 `ws/botmsg.txt` 文件后需要重启 | ||
|
||
## 后台启动 | ||
```bash | ||
docker compose up -d | ||
``` | ||
|
||
## 配置文件 | ||
- 配置文件是 [`data/appsettings.json`](data/appsettings.json) | ||
|
||
## 添加自己的回复逻辑 | ||
- 我们使用的是反向 websocket | ||
- 逻辑代码位于 [`ws/server.py`](ws/server.py) 文件 |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.