QQ Bot 掉线后使用 SMTP 发送邮件提醒
Project description
📖 介绍
QQ bot掉线后使用SMTP发送邮件提醒,可自定义配置任意SMTP服务器以及接受邮箱
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-botoffline-email
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-botoffline-email
pdm
pdm add nonebot-plugin-botoffline-email
poetry
poetry add nonebot-plugin-botoffline-email
conda
conda install nonebot-plugin-botoffline-email
打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入
plugins = ["nonebot-plugin-botoffline-email"]
⚙️ 配置
在 nonebot2 项目的.env文件中添加下表中的必填配置
| 配置项 | 必填 | 默认值 | 说明 |
|---|---|---|---|
| smtp_host | 是 | 无 | smtp的发送邮件服务器 |
| smtp_port | 否 | 587 | smtp的发送邮件服务器端口 |
| smtp_user | 是 | 无 | smtp的发送邮箱 |
| smtp_pass | 是 | 无 | smtp的发送邮箱密码 |
| email_from | 是 | 无 | 发出邮箱 |
| email_to | 是 | 无 | 接收邮箱 |
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonebot_plugin_botoffline_email-0.0.1.tar.gz.
File metadata
- Download URL: nonebot_plugin_botoffline_email-0.0.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16d18c8d3c95be6fd3d89517b7385bb7c9bf1a4c8bd57a35538b5d29c6f9b873
|
|
| MD5 |
7fad3d87493bc5cccc3f29753da603ed
|
|
| BLAKE2b-256 |
cef9841be5067654a21a4a9d0b82624e2f1b7f8f149cdf6dd62962c20952acf8
|
Provenance
The following attestation bundles were made for nonebot_plugin_botoffline_email-0.0.1.tar.gz:
Publisher:
pypi-publish.yml on QianQiuZy/nonebot-plugin-botoffline-email
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nonebot_plugin_botoffline_email-0.0.1.tar.gz -
Subject digest:
16d18c8d3c95be6fd3d89517b7385bb7c9bf1a4c8bd57a35538b5d29c6f9b873 - Sigstore transparency entry: 339066458
- Sigstore integration time:
-
Permalink:
QianQiuZy/nonebot-plugin-botoffline-email@172cee741875dba2035814195b64aff8462a2e50 -
Branch / Tag:
refs/tags/0.0.1 - Owner: https://github.com/QianQiuZy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@172cee741875dba2035814195b64aff8462a2e50 -
Trigger Event:
push
-
Statement type:
File details
Details for the file nonebot_plugin_botoffline_email-0.0.1-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_botoffline_email-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89d3b6129a90f52b6af67aaddcbee3366180b33b915fe5f10115d4b45f3ddf2f
|
|
| MD5 |
ad55c7583291da18c588e4c63aafc400
|
|
| BLAKE2b-256 |
3210750f245e86af665c14992b9c028d6edaaf08bc4e99697a8a97f0e8a67208
|
Provenance
The following attestation bundles were made for nonebot_plugin_botoffline_email-0.0.1-py3-none-any.whl:
Publisher:
pypi-publish.yml on QianQiuZy/nonebot-plugin-botoffline-email
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nonebot_plugin_botoffline_email-0.0.1-py3-none-any.whl -
Subject digest:
89d3b6129a90f52b6af67aaddcbee3366180b33b915fe5f10115d4b45f3ddf2f - Sigstore transparency entry: 339066473
- Sigstore integration time:
-
Permalink:
QianQiuZy/nonebot-plugin-botoffline-email@172cee741875dba2035814195b64aff8462a2e50 -
Branch / Tag:
refs/tags/0.0.1 - Owner: https://github.com/QianQiuZy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@172cee741875dba2035814195b64aff8462a2e50 -
Trigger Event:
push
-
Statement type: