此项目由 amakerlife 的 LuoguMsgNotifier 项目 fork 而来,并进行了拓展。
在 Windows/Mail 上通知洛谷私信。
检测频率:10s - 1min
注意:Windows 通知仅支持 Windows 10+ 且不保证对 Windows 10 早期版本的支持。
在 Releases 页面下载最新版本的 LuoguMsgNotifier.zip
文件。
解压得到 LuoguMsgNotifier.exe
文件。
在 config.json
文件中填写相关信息,并保存。
若不存在
config.json
文件,请先运行LuoguMsgNotifier.exe
。
双击运行。
若出现 INFO: 连接成功
字样,则表示连接成功。
即 config.json
文件中的 luogu
字段。
字段 | 类型 | 说明 | 默认值 |
---|---|---|---|
_uid | string | _uid | "" |
__client_id | string | __client_id | "" |
关于 _uid
和 __client_id
请参考 https://www.luogu.com/article/x6z3s5ri。
即 config.json
文件中的 windows
字段。
字段 | 类型 | 说明 | 默认值 |
---|---|---|---|
enable | bool | 是否启用桌面通知 | true |
title | string | 通知标题 | "收到新的洛谷私信" |
content | string | 通知内容($user$ 为用户名,$content$ 为私信内容) |
"$user$ : $content$ " |
即 config.json
文件中的 mail
字段。
字段 | 类型 | 说明 | 默认值 |
---|---|---|---|
enable | bool | 是否启用邮件通知 | false |
smtp_server | string | SMTP服务器地址 | "" |
smtp_port | int | SMTP服务器端口 | 0 |
smtp_user | string | SMTP用户名 | "" |
smtp_password | string | SMTP密码 | "" |
receiver | string | 收件人邮箱 | "" |
title | string | 通知标题 | "来自 $user$ 的 Luogu 私信" |
content | string | 通知内容($user$ 为用户名,$content$ 为私信内容) |
"$user$ : $content$ " |
请确保安装了 Python 3.x 及以上版本
git clone https://github.com/xglight/LuoguMsgNotifier.git
cd LuoguMsgNotifier
pip install -r requirements.txt
pyinstaller LuoguMsgNotifier.spec
- 目前尚不能检验登录信息的有效性,请保证
_uid
和__client_id
填写正确。 - 由于 Outlook 于 2023 年关停了基本身份验证,因此 Outlook 邮箱的通知功能不可用。
- 增加登录信息有效性验证。
- 添加
Helper.exe
作为辅助程序,方便管理。 - 增加更多的通知方式,如邮件、微信、QQ 等。
- 自定义通知内容。