Files
goodBaby/README.md
T

50 lines
1.7 KiB
Markdown
Raw Normal View History

2025-10-03 22:54:19 +08:00
# goodBaby
2025-10-06 16:23:56 +08:00
摇篮系统
2025-10-06 18:57:53 +08:00
## 他会做什么
1. 接受 singnal 请求
2. 当定时器超时(过长时间没有收到请求)时,触发 `trigger` 函数
2025-10-06 18:59:31 +08:00
3. 发送消息到QQ(依赖[CatBot](https://github.com/ssdomei232/CatBot))
2025-10-06 18:57:53 +08:00
4. 发送邮件
5. 将 Github 上的遗言仓库设置为 public
## 配置
参照 config.example.json 修改 config.json
```json
{
2025-10-06 21:05:06 +08:00
"basic": {
"name": "xx", // 你的名字
"qq_number": "123", // QQ号
"age": 16, // 你的年龄
"cause_stop": "自杀" // 你最可能的死因
},
2025-10-06 18:57:53 +08:00
"signal_secret": "", // 发送 signal请求时需要的密钥
"debug": false, // debug 模式
"disconnect_duration": 5, // 失连时间,超出后会触发系统
"cat_bot_url": "", // CatBot 的 webhook地址(https://github.com/ssdomei232/CatBot)
"cat_bot_key": "", // CatBot 的 key
"qq_send_group": [], // 要发送QQ消息的群号
"qq_msg": "", // 要附加的QQ消息
"mail_list": [], // 要发送的邮箱
"mail_title": "摇篮系统已触发", // 邮件标题
"smtp_config": { // 邮件服务器配置
"host": "",
"port": 465,
"user": "",
"pass": ""
},
"mail_content": "", // 要附加的邮件内容
"github_config": { // Github 配置
"owner": "",
"repos": [""],
"token": "ghp_xxxx"
2025-10-06 20:23:46 +08:00
},
"bili_msg": "xxx", // 哔哩哔哩动态的附加消息
"bili_warn_address": "" // 哔哩哔哩cookie过期发送告警的邮件地址
2025-10-06 18:57:53 +08:00
}
```