Skip to content

Commit

Permalink
docs: 适配bot新的QQ空间登录方式
Browse files Browse the repository at this point in the history
  • Loading branch information
RockChinQ committed Sep 11, 2024
1 parent 8df5028 commit a400175
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 80 deletions.
15 changes: 15 additions & 0 deletions docker/docker-compose.middleware.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: "3"
services:
redis:
image: redis:6-alpine
restart: always
container_name: campux-redis
volumes:
# Mount the redis data directory to the container.
- ./volumes/redis/data:/data
# Set the redis password when startup redis server.
command: redis-server --requirepass campux123456
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
ports:
- 6379:6379
1 change: 0 additions & 1 deletion docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ services:
- TZ=Asia/Shanghai
- campux_review_qq_group_id=<修改为你的稿件审核群>
- campux_qq_bot_uin=<修改为你的墙号QQ号>
- campux_qq_admin_uin=<修改为你的系统管理员QQ号>
networks:
- campux-network

Expand Down
Binary file modified docs/docs/assets/deploy_minimal_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/docs/assets/deploy_minimal_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/docs/assets/insight_scenario_06.jpg
Binary file not shown.
Binary file modified docs/docs/assets/insight_scenario_08.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/docs/assets/insight_scenario_11.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 2 additions & 4 deletions docs/docs/deploy/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,12 @@ CampuxBot 的配置文件位于 `Campux/docker/campuxbot/config.json`。修改
"campux_help_message": "发送 #注册账号 以此QQ号注册一个新账号(前面需要加#号)\n发送 #重置密码 重置你的账号密码\n\n投稿地址 https://gz.idoknow.top (若打不开请更换浏览器尝试)",
// 群内审核时消息不符合命令时的回复消息
"campux_review_help_message": "审核命令:\n#通过 <稿件id>\n\n#拒绝 <理由> <稿件id>\n\n例如:\n#通过 10\n#拒绝 测试理由 10",
// 审核群群号
// 管理员群群号
"campux_review_qq_group_id": 422250630,
// 见 Campux 配置文件中的 domain 字段
"campux_domain": "campux",
// 墙号 QQ 号
"campux_qq_bot_uin": 1099044697,
// 管理员 QQ 号
"campux_qq_admin_uin": 1010553892
"campux_qq_bot_uin": 1099044697
}
```

Expand Down
4 changes: 3 additions & 1 deletion docs/docs/deploy/maintain.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@

Bot 发表说说都是逆向工程,模拟 Web QQ 空间的请求。需要定期(约48小时)扫码登录。

Bot 管理员,向 Bot 发送命令 `#更新cookies` ,Bot 会返回一个二维码,管理员手机上登录 **墙号 QQ**,扫码授权即可自动登录。
Bot 管理员在管理员群内,向 Bot 发送命令 `#登录` ,Bot 会返回一个二维码,管理员手机上登录 **墙号 QQ**,扫码授权即可自动登录。

<img src="/assets/insight_scenario_11.jpg" alt="扫码登录" width="40%">

<img src="/assets/insight_scenario_08.jpg" alt="扫码登录" width="40%">

Expand Down
4 changes: 2 additions & 2 deletions docs/docs/deploy/minimal.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

另外:
- 准备一个闲置的 QQ 号用作墙号,建议使用等级较高的号,避免风控
- 准备一个 审核QQ群,把你自己和墙号都拉进去
- 准备一个闲置的 QQ 群作为管理员群,把你自己和墙号都拉进去


## 创建网络
Expand Down Expand Up @@ -49,7 +49,7 @@ cd Campux/docker

<img src="/assets/deploy_minimal_02.png" alt="修改环境变量" width="50%">

注意,请确保所有以尖括号包裹的内容都已修改。
**注意,请确保所有以尖括号包裹的内容都已修改。**

生成配置文件并启动:

Expand Down
17 changes: 0 additions & 17 deletions docs/docs/usage/bot.md

This file was deleted.

55 changes: 0 additions & 55 deletions docs/docs/usage/campux.md

This file was deleted.

0 comments on commit a400175

Please sign in to comment.