QQbot断连时的通知插件
Project description
📖 介绍
- 可以在qqbot断开与nonebot连接时向主人进行例如邮件的通知
- 目前支持onebotv11协议,通知方式支持邮件通知
- 如果有其他协议或通知方式的需求,欢迎提issus或pr
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-disconnect-notice
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pdm
pdm add nonebot-plugin-disconnect-notice
poetry
poetry add nonebot-plugin-disconnect-notice
⚙️ 配置
运行插件前,需要在 nonebot2 项目的.env.prod
文件中添加下表中的代理地址配置项
配置项 | 必填 | 值类型 | 默认值 | 说明 |
---|---|---|---|---|
disconnect_notice_smtp_user | 是 | str | "" | 邮箱账号,如 114514@yeah.net |
disconnect_notice_smtp_password | 是 | str | "" | 邮箱密码,如 114514 |
disconnect_notice_smtp_server | 是 | str | "" | 邮箱服务器地址,如 smtp.yeah.net |
disconnect_notice_smtp_port | 是 | int | 465 | 邮箱端口号,ssl模式时为465 |
disconnect_notice_notice_email | 是 | str | "" | 收件人邮箱,填写自己邮箱即可 |
示例配置
```env # disconnect_notice示例配置 disconnect_notice_smtp_user = "114514@yeah.net" #邮箱账号 disconnect_notice_smtp_password = "114514" #邮箱密码 disconnect_notice_smtp_server = "smtp.yeah.net" #邮箱服务器地址 disconnect_notice_smtp_port = 465 #邮箱端口号 disconnect_notice_notice_email = "114514@qq.com" #收件人邮箱 ```🎉 使用
效果图
邮件通知
✨喜欢的话就点个star✨吧,球球了QAQ
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for nonebot_plugin_disconnect_notice-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29e368707e3bf4fd65fb7f9cd4cbe979d03b41f12eec62267e1e02d3d9c95ae5 |
|
MD5 | 6e25ae83b455932c9b4cc3edc71613f5 |
|
BLAKE2b-256 | 89b9f040379a53dd5dd47de7ed3207340eb5ebc09f7eec59c1599f27a538b43c |
Close
Hashes for nonebot_plugin_disconnect_notice-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea7fe9e3ee3064a6cd53e9e9bbe49581520656ec995806a0e0f79fedbf92db49 |
|
MD5 | c4b4389e2afe1fdce3cc2effe9404f41 |
|
BLAKE2b-256 | aa0c7e175cc3b7d28bdd43260b18893b316e33271ca2b09bd911e23cd3c315af |