Important
需要配置邮箱才能发送提醒! 可使用闲置QQ邮箱进行配置。
├── gsuid_core
│ ├── gsuid_core
│ │ ├── plugins
│ │ │ ├── XutheringWavesUID
│ │ │ ├── RoverReminder
cd gsuid_core/gsuid_core/plugins
git clone --depth=1 https://github.com/Loping151/RoverReminder依赖:XutheringWavesUID 及其数据表
启动后,只需要修改两个文件:
- 配置文件路径:
gsuid_core/data/RoverReminder/mail/config.json
启动后会自动生成,直接修改该文件即可。
- 邮件模板路径:
gsuid_core/data/RoverReminder/mail/template.html
启动后会自动生成,直接修改该文件即可。不要修改 .template
模板内可用变量:
{{uid}}{{user_id}}{{bot_id}}{{bot_self_id}}{{stamina}}{{threshold}}{{time}}{{stamina_image}}(base64 图片,可为空)
自定义模板(可选):
- 修改
gsuid_core/gsuid_core/plugins/RoverReminder/RoverReminder/mail/custom_template.py - 自定义时会优先使用该文件内的
build_stamina_html函数
QQ 邮箱配置示例:
Warning
必须修改 provider 字段!
provider: 填写你的QQ邮箱地址,如123456789@qq.comauth_code: 授权码(非登录密码),需在QQ邮箱后台开启SMTP服务后获取smtp_server:smtp.qq.comsmtp_port:465(SSL) 或587(STARTTLS)- 加密必需启用
QQ邮箱本质上也是使用 SMTP 协议发送邮件,只是需要使用授权码登录。部分QQ号有进入垃圾邮件风险。
- 开启推送:
ww开启体力推送 - 关闭推送:
ww关闭体力推送 - 设置邮箱:
ww推送邮箱 123456789@gmail.com - 设置阈值:
ww推送阈值 180