Skip to main content

A plugin for nonebot2 that follows the user's withdraw of a command.

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-follow-withdraw

✨ NoneBot2跟随撤回插件 ✨

license pypi python

📖 介绍

当触发命令的消息被撤回时,让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数据。

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

nonebot_plugin_follow_withdraw-0.2.0.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file nonebot_plugin_follow_withdraw-0.2.0.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_follow_withdraw-0.2.0.tar.gz
Algorithm Hash digest
SHA256 96d5c0214721bb529bfd0705fd8bb7dd6f77c1983bff2fd800b46e7f7b0d79de
MD5 4f5cd55b62dc81129bb8cf888bef24b1
BLAKE2b-256 bf234284c59af592af4c824d35bc702baf33cdfdfd7edf6f30f8340041c4064a

See more details on using hashes here.

File details

Details for the file nonebot_plugin_follow_withdraw-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_follow_withdraw-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d63aba308d0fc462e05762841e280292c7a1c3d32e47d61a9371ea02e4d5ddec
MD5 b0c218f4d640e3d633473ea569de927e
BLAKE2b-256 907df00fd36d5ec176c22e7c75ff77330ca008bef70651f7536c4279651d7888

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page