Skip to main content

A simple withdraw plugin for Nonebot2

Project description

nonebot-plugin-withdraw

基于 nonebot2 的简单撤回插件,让机器人撤回 自己发出的消息

使用场景是如果机器人发出了不和谐的消息,群友可以帮忙及时撤回

注意如果机器人不是管理员,则无法撤回2分钟以上的消息

使用

以下命令需要加命令前缀 (默认为/),可自行设置为空

方式1:

@机器人 撤回 [num1][-num2]

注:若命令前缀为空则需要 @机器人,否则可不@

num 指机器人发的倒数第几条消息,从 0 开始,默认为 0

num不需要加[],仅为了说明是可选参数

示例:

@机器人 撤回    # 撤回倒数第一条消息
@机器人 撤回 1    # 撤回倒数第二条消息
@机器人 撤回 0-3    # 撤回倒数三条消息

方式2:

回复需要撤回的消息,回复“撤回”

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_withdraw-0.2.3.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

nonebot_plugin_withdraw-0.2.3-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

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