Skip to content

Loping151/RoverReminder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RoverReminder

icon

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 及其数据表

邮件配置

启动后,只需要修改两个文件:

  1. 配置文件路径:gsuid_core/data/RoverReminder/mail/config.json

启动后会自动生成,直接修改该文件即可。

  1. 邮件模板路径: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.com
  • auth_code: 授权码(非登录密码),需在QQ邮箱后台开启SMTP服务后获取
  • smtp_server: smtp.qq.com
  • smtp_port: 465(SSL) 或 587(STARTTLS)
  • 加密必需启用

QQ邮箱本质上也是使用 SMTP 协议发送邮件,只是需要使用授权码登录。部分QQ号有进入垃圾邮件风险。

使用说明

  • 开启推送:ww开启体力推送
  • 关闭推送:ww关闭体力推送
  • 设置邮箱:ww推送邮箱 123456789@gmail.com
  • 设置阈值:ww推送阈值 180

About

鸣潮体力推送

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages