Skip to main content

QQbot断连时的通知插件

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-disconnect-notice

✨ QQbot断连时的通知插件 ✨

license pypi python

📖 介绍

  • 可以在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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_disconnect_notice-0.1.0.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page