2021-06-12 09:58:48 +00:00
|
|
|
|
# Config配置教程
|
|
|
|
|
|
|
|
|
|
## 本项目识别config文件的方法
|
|
|
|
|
|
2022-08-24 01:06:50 +00:00
|
|
|
|
单用户是直接读取文件夹里面的`config.yaml`,多用户是读取文件夹里面为`.yaml`为拓展名的文件
|
2021-06-12 09:58:48 +00:00
|
|
|
|
|
|
|
|
|
## 讨论区的id对应关系
|
|
|
|
|
|
|
|
|
|
`1`对应崩坏3
|
|
|
|
|
|
|
|
|
|
`2`对应原神
|
|
|
|
|
|
|
|
|
|
`3`对应崩坏学园2
|
|
|
|
|
|
|
|
|
|
`4`对应未定事件簿
|
|
|
|
|
|
|
|
|
|
`5`对应大别墅
|
2021-10-05 14:01:44 +00:00
|
|
|
|
|
|
|
|
|
`6`对应崩坏:星穹铁道
|
2022-05-08 15:50:04 +00:00
|
|
|
|
|
2022-08-24 01:06:50 +00:00
|
|
|
|
`8`对应绝区零
|
2022-05-08 15:50:04 +00:00
|
|
|
|
|
2022-08-24 01:06:50 +00:00
|
|
|
|
## push.ini配置教程
|
2022-05-08 15:50:04 +00:00
|
|
|
|
|
2022-05-09 06:46:05 +00:00
|
|
|
|
* push_server 可选范围 cqhttp ftqq(sever酱) pushplus telegram dingrobot bark
|
2022-05-08 15:50:04 +00:00
|
|
|
|
|
2022-08-24 01:06:50 +00:00
|
|
|
|
### Wecom
|
2022-05-08 15:50:04 +00:00
|
|
|
|
|
2022-05-09 03:29:35 +00:00
|
|
|
|
企业微信
|
|
|
|
|
|
|
|
|
|
**wechat_id**填写**企业ID**,见: 我的企业 -> 企业设置 -> 企业ID
|
|
|
|
|
|
|
|
|
|
**agentid**填写**AgentId**,见: 应用管理 -> 自建 -> 「你自己的应用」 -> 复制数字
|
|
|
|
|
**secret**填写**Secret**,见: 应用管理 -> 自建 -> 「你自己的应用」-> 点<u>查看</u>链接
|
|
|
|
|
|
|
|
|
|
**touser**填写**接收人**,默认 @all 通知企业内所有人,指定接收人时使用大驼峰拼音,多个可用|隔开
|
|
|
|
|
|
|
|
|
|
填写示例
|
|
|
|
|
|
|
|
|
|
```ini
|
|
|
|
|
[setting]
|
|
|
|
|
enable=true
|
|
|
|
|
push_server=wecom
|
|
|
|
|
|
|
|
|
|
[wecom]
|
|
|
|
|
#企业微信的corpid
|
|
|
|
|
wechat_id=
|
|
|
|
|
#企业微信的应用配置
|
|
|
|
|
agentid=
|
|
|
|
|
secret=
|
|
|
|
|
touser=@all
|
|
|
|
|
```
|
|
|
|
|
|
2022-08-24 01:06:50 +00:00
|
|
|
|
### dingrobot
|
|
|
|
|
|
2022-05-08 15:50:04 +00:00
|
|
|
|
钉钉群机器人
|
|
|
|
|
|
2022-05-08 16:52:11 +00:00
|
|
|
|
**webhook**填写**Webhook**地址
|
2022-05-08 15:50:04 +00:00
|
|
|
|
|
2022-05-08 16:52:11 +00:00
|
|
|
|
**secret**填写**安全设置**中**加签**的密钥,此选项为可选项
|
2022-05-08 15:50:04 +00:00
|
|
|
|
|
|
|
|
|
填写示例
|
|
|
|
|
|
|
|
|
|
```ini
|
|
|
|
|
[setting]
|
|
|
|
|
enable=true
|
|
|
|
|
push_server=dingrobot
|
|
|
|
|
|
|
|
|
|
[dingrobot]
|
2022-05-08 16:52:11 +00:00
|
|
|
|
webhook=https://oapi.dingtalk.com/robot/send?access_token=XXX
|
|
|
|
|
secret=
|
2022-05-08 15:50:04 +00:00
|
|
|
|
```
|
|
|
|
|
|
2022-08-24 01:06:50 +00:00
|
|
|
|
### bark
|
2022-05-09 06:46:05 +00:00
|
|
|
|
|
2022-08-24 01:06:50 +00:00
|
|
|
|
一款开源的消息推送工具 [Bark](https://github.com/Finb/Bark)
|
2022-05-09 06:46:05 +00:00
|
|
|
|
|
|
|
|
|
手机安装bark客户端获得托管在api.day.app的Token,也可以自己搭建私有服务端。
|
|
|
|
|
|
|
|
|
|
**api_url**一般不用改,自己搭建私有服务端的需要改掉
|
|
|
|
|
|
|
|
|
|
**token**填写**APP**内**URL**中的密钥,此选项必填
|
|
|
|
|
|
|
|
|
|
> `https://api.day.app/` `token部分` `/Title/NotificationContent`
|
|
|
|
|
|
|
|
|
|
填写示例
|
|
|
|
|
|
|
|
|
|
```ini
|
|
|
|
|
[setting]
|
|
|
|
|
enable=true
|
|
|
|
|
push_server=bark
|
|
|
|
|
|
|
|
|
|
[bark]
|
|
|
|
|
api_url=https://api.day.app
|
|
|
|
|
token=XXX
|
|
|
|
|
```
|