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 hashes)

Uploaded Source

Built Distribution

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