nonebot-plugin-helper-recall
✨ 帮撤回插件 ✨
帮助普通群员撤回自己因超时无法撤回的消息,需要bot被群主授予管理员权限(想给bot群主我也没意见(bushi))
功能
- 引用自己发送的消息,发送
/撤回指令 - Bot 尝试撤回该消息
安装(指令二选一,无区别)
nb plugin install nonebot-plugin-helper-recall
pip install nonebot-plugin-helper-recall
使用
- 确保 Bot 是群管理员
- 群员引用自己发送的任意消息(包括超时的)
- 在同一条消息中发送
/撤回 - Bot 会撤回那条被引用的消息
注意事项
- 触发命令为
/撤回(引用消息后发送),日常聊天中提到"撤回"二字不会触发 - 仅支持撤回自己的消息
- 如果消息已超过 QQ 可撤回时间,会提示失败(不是两分钟那个
- 需要 Bot 有管理员权限
- 撤回失败的具体原因请查看 Bot 日志,不会在群里输出原始错误信息
配置
无需配置,即装即用
0.2.0 更新日志
- 修复:触发条件过宽——此前任何包含"撤回"二字的聊天消息都会触发插件回复
(甚至被引用的消息带"撤回"字样时会被真的撤回);现改为标准
/撤回命令触发 - 修复:撤回成功后还会追加一条"撤回失败了喵"报错的问题
(
finish()抛出的FinishedException被except Exception捕获所致) - 修复:撤回失败时把原始 API 错误信息直接发到群里(信息泄露),现只回友好提示,详情记录日志
- 修复:私聊使用
/撤回无响应(现提示仅支持群聊) - 修复:移除两个从未使用的依赖(nonebot-plugin-alconna、nonebot-plugin-localstore), 安装体积大幅减小
requires-python提升至 3.10;补充 LICENSE 文件; 移除误提交的 egg-info;新增测试套件(nonebug + pytest)
开发
pip install -e ".[test]"
pytest
开源协议
MIT
Metadata
Release files for nonebot-plugin-helper-recall 0.2.0
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 | |
|---|---|---|---|---|
| nonebot_plugin_helper_recall-0.2.0.tar.gz | 6.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nonebot_plugin_helper_recall-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.3 kB
Release files / nonebot_plugin_helper_recall-0.2.0.tar.gz
| Download URL | nonebot_plugin_helper_recall-0.2.0.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7dc05b3a516dcb11002d8b28bbbdba6591f12cd463b3c9519760c47a3a81ff3c
|
|
BLAKE2b-256 checksum How to use checksums |
bac161e084afcef678cf1f56f41ec782ca57b919e688196d681966afb2ebf328
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / nonebot_plugin_helper_recall-0.2.0-py3-none-any.whl
| Download URL | nonebot_plugin_helper_recall-0.2.0-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
592a016b7df51ab5d8b6e12a18d4d7c2a10c9a23f9b8f0649e3d9eff628286a5
|
|
BLAKE2b-256 checksum How to use checksums |
df05c78cfa82cd7ca6ce0d71483419a4eac810799d896453264517f8c5b98e4a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Security for nonebot-plugin-helper-recall 0.2.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.