Pallas-Bot 官方扩展:牛牛在吗、报数与离线邮件通知。
Project description
牛牛状态 pallas-plugin-bot-status
查看在线情况、群内报数,并在离线时发送邮件提醒。
安装方式
需已安装 Pallas-Bot 4.0 或更高版本。推荐直接在控制台插件商店安装,或在本体项目中执行:
uv run pallas ext install pallas-plugin-bot-status
也可单独安装本包:
uv pip install pallas-plugin-bot-status
怎么使用
| 口令 / 触发 | 场景 | 说明 |
|---|---|---|
牛牛在吗 |
群内 / 私聊 | 查看在线和离线情况。 |
牛牛报数 / 牛牛出列 |
群内 | 在线牛牛依次报到。 |
测试邮件 |
群内 / 私聊 | 测试邮件通知配置。 |
详细用法、限制条件和可用范围以帮助为主。
命令权限
| 命令 ID | 默认等级 |
|---|---|
bot_status.status |
bot_moderator |
bot_status.count |
everyone |
bot_status.test_mail |
superuser |
配置项
可在控制台对应插件页中修改。
牛牛状态的常用配置包括 SMTP、通知邮箱、离线宽限时间和名册范围模式。
排障
| 现象 | 处理 |
|---|---|
| 收不到邮件 | 检查 SMTP 和通知邮箱配置。 |
| 报数不全 | 检查当前群里是否真的在线,以及分片协调是否正常。 |
| 误报离线 | 调大离线宽限时间。 |
实现
源码位置:src/pallas_plugin_bot_status/
关键文件:
__init__.py:注册状态查询、报数和测试邮件命令。bot_monitor.py:汇总在线状态和群内可见牛牛。mail_notifier.py:发送离线通知和测试邮件。
实现要点:
牛牛在吗用于聚合状态,牛牛报数更偏向当前群里的现场点名。- 邮件通知除了发到配置邮箱,还会尝试发给对应牛牛管理员的 QQ 邮箱。
- 分片模式下,报数和状态统计会受当前配置的名册范围影响。
相关链接
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
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 pallas_plugin_bot_status-4.0.8.tar.gz.
File metadata
- Download URL: pallas_plugin_bot_status-4.0.8.tar.gz
- Upload date:
- Size: 1.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0bd80824f3973d284f0f2e84b4f0d802f35e262d6a16b6ecbdbe44d5e308790
|
|
| MD5 |
ee359162445d4d144ec967bce29b72bd
|
|
| BLAKE2b-256 |
aeabfa68483db67952343bf4df05fb7c97b9ad7ea67f9613c0f4d9e931084f5e
|
Provenance
The following attestation bundles were made for pallas_plugin_bot_status-4.0.8.tar.gz:
Publisher:
publish-pypi.yml on TogetsuDo/pallas-plugin-bot-status
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pallas_plugin_bot_status-4.0.8.tar.gz -
Subject digest:
b0bd80824f3973d284f0f2e84b4f0d802f35e262d6a16b6ecbdbe44d5e308790 - Sigstore transparency entry: 1966773714
- Sigstore integration time:
-
Permalink:
TogetsuDo/pallas-plugin-bot-status@d99db29a9d88a56c7981e3c4662fea9fe51e8f53 -
Branch / Tag:
refs/tags/v4.0.8 - Owner: https://github.com/TogetsuDo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@d99db29a9d88a56c7981e3c4662fea9fe51e8f53 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pallas_plugin_bot_status-4.0.8-py3-none-any.whl.
File metadata
- Download URL: pallas_plugin_bot_status-4.0.8-py3-none-any.whl
- Upload date:
- Size: 38.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7fc3e402584f5a244683ad9f1bd96af1a3cde9bb2a67b5fd6d62638300d6e4e9
|
|
| MD5 |
751b1395c7a9afd2f549a5f4a64c1901
|
|
| BLAKE2b-256 |
44020ce9495568256f5b25421b9de6f8f56d4db189feaaae69ee1dacafae9d38
|
Provenance
The following attestation bundles were made for pallas_plugin_bot_status-4.0.8-py3-none-any.whl:
Publisher:
publish-pypi.yml on TogetsuDo/pallas-plugin-bot-status
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pallas_plugin_bot_status-4.0.8-py3-none-any.whl -
Subject digest:
7fc3e402584f5a244683ad9f1bd96af1a3cde9bb2a67b5fd6d62638300d6e4e9 - Sigstore transparency entry: 1966773823
- Sigstore integration time:
-
Permalink:
TogetsuDo/pallas-plugin-bot-status@d99db29a9d88a56c7981e3c4662fea9fe51e8f53 -
Branch / Tag:
refs/tags/v4.0.8 - Owner: https://github.com/TogetsuDo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@d99db29a9d88a56c7981e3c4662fea9fe51e8f53 -
Trigger Event:
push
-
Statement type: