📖 介绍
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 | 是 | 无 | 接收邮箱 |
Metadata
Release files for nonebot-plugin-botoffline-email 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nonebot_plugin_botoffline_email-0.0.4.tar.gz | 4.6 kB | With provenance | Details for nonebot_plugin_botoffline_email-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_botoffline_email-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_botoffline_email-0.0.4-py3-none-any.whl |
Total release size: 10.5 kB
Release files / nonebot_plugin_botoffline_email-0.0.4.tar.gz
| Download URL | nonebot_plugin_botoffline_email-0.0.4.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
126f417f58f32f238c38963638e9d97d8716838f81c6e1daec27870681abab49
|
|
BLAKE2b-256 checksum How to use checksums |
7c87a39524474dcb4f317884538c2f93a3d9d2f6bd8595d0dc9f9d57df1cfc50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 3, 2025.
Transparency logRelease files / nonebot_plugin_botoffline_email-0.0.4-py3-none-any.whl
| Download URL | nonebot_plugin_botoffline_email-0.0.4-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0acf07d1242977507955b568edcd994dc3d481e989bd8e5cb93d5799f4f0bae0
|
|
BLAKE2b-256 checksum How to use checksums |
3fdf3747cf6dcf5f0a11f6423e92c4b3296c4ea788ab7c3dce75d08ff63385c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 3, 2025.
Transparency logSecurity for nonebot-plugin-botoffline-email 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for nonebot_plugin_botoffline_email-0.0.4.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 3, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.