Files
ATRI-NOTES/2026年4月27日下午记录.md
2026-04-27 22:00:13 +08:00

26 lines
864 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
## 🌙 事件6NapCat邮件监控发现21:52~21:59
### 起因
主人问能否通过email插件识别NapCat在线状况。
### 发现过程
1. 读取 `astrbot_plugin_email_tool` 完整源码发现它内置了NapCat监控模块
2. 检查WebUI配置已包含 `enable_napcat_monitor: true` 等完整配置
3. 通过SSH测试NapCat API通路`https://napcat.kronecker.cc` ✅ 可达
### 技术细节
- 插件通过NapCat HTTP API`GetQQLoginInfo`检测QQ登录状态
- 比SSH `docker ps` 更精准——能检测到QQ被踢下线而不仅容器状态
- 掉线时自动发邮件到 `kiriaky107@qq.com`
- 冷却30分钟避免频繁打扰
- 支持 `/猫猫查询``/napcat状态` 指令查询实时状态
### 当前状态
- ✅ NapCat API网络通路正常
- ✅ 插件配置完整
- ⏳ 需要重启AstrBot使监控循环生效