📖 介绍
当触发命令的消息被撤回时,让Bot跟随撤回命令消息结果。
以内置插件echo为例:
- 你:
@bot /echo hello world - Bot:
hello world
如果消息@bot /echo hello world被撤回了,那Bot将自动撤回它发出的hello world
💿 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-follow-withdraw
☀ ️适配
现已支持以下适配器:
| 名称 | 测试 | 说明 |
|---|---|---|
| OneBot(V11、V12) | ✔️ | - |
| QQ Guild | ✔️ | - |
| Discord | ✔️ | - |
| Kaiheila | ❌ | 暂只支持频道消息,不支持私聊 |
部分适配器不支持消息撤回或无法接收消息撤回事件通知,无法支持。
🔧 ️配置
| 配置名 | 默认值 | 说明 |
|---|---|---|
| follow_withdraw_all | True | 为True时撤回所有(如果有多条)与该消息相关的消息,为False则是只撤回第一条 |
| follow_withdraw_interval | 0.5 | 多条消息时的撤回间隔(单位秒),以防止一瞬间撤回过多消息导致风控( |
| follow_withdraw_enable_adapters | ["OneBot V11", "OneBot V12", "QQ Guild", "Discord", "Kaiheila"] | 启用的适配器类型列表,默认为所有已支持的适配器,可选值请看默认值 |
| follow_withdraw_bot_blacklist | [] | 不启用跟随撤回的Bot列表,填写Bot的bot_id |
| follow_withdraw_plugin_blacklist | [] | 不启用跟随撤回的插件列表 |
此外,本插件还提供了一个仅超级用户可使用的命令清除消息记录,来清除本插件记录的消息ID数据。
Metadata
Release files for nonebot-plugin-follow-withdraw 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 | Actions |
|---|---|---|---|---|
| nonebot_plugin_follow_withdraw-0.2.0.tar.gz | 8.5 kB | Without provenance | Details for nonebot_plugin_follow_withdraw-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_follow_withdraw-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_follow_withdraw-0.2.0-py3-none-any.whl |
Total release size: 20.2 kB
Release files / nonebot_plugin_follow_withdraw-0.2.0.tar.gz
| Download URL | nonebot_plugin_follow_withdraw-0.2.0.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
96d5c0214721bb529bfd0705fd8bb7dd6f77c1983bff2fd800b46e7f7b0d79de
|
|
BLAKE2b-256 checksum How to use checksums |
bf234284c59af592af4c824d35bc702baf33cdfdfd7edf6f30f8340041c4064a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Release files / nonebot_plugin_follow_withdraw-0.2.0-py3-none-any.whl
| Download URL | nonebot_plugin_follow_withdraw-0.2.0-py3-none-any.whl |
|---|---|
| Size | 11.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d63aba308d0fc462e05762841e280292c7a1c3d32e47d61a9371ea02e4d5ddec
|
|
BLAKE2b-256 checksum How to use checksums |
907df00fd36d5ec176c22e7c75ff77330ca008bef70651f7536c4279651d7888
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Security for nonebot-plugin-follow-withdraw 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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.