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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file nonebot_plugin_withdraw-0.2.3.tar.gz.

File metadata

  • Download URL: nonebot_plugin_withdraw-0.2.3.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.4.72-microsoft-standard-WSL2

File hashes

Hashes for nonebot_plugin_withdraw-0.2.3.tar.gz
Algorithm Hash digest
SHA256 cdfee9e90bd31596f34da9d60c9949dbc958803005e161cd3edbcc8c5c88091f
MD5 fe4ab7867ce12cd52220569665065499
BLAKE2b-256 8ef8ac2d6f0c7309d682b307f6eb7a41e9103ace624e05610f772aaf9e067caf

See more details on using hashes here.

File details

Details for the file nonebot_plugin_withdraw-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_withdraw-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 990798f1979c0ccec5dfdcd017174549125f2b13c1d420701e615afbaff5342e
MD5 ecbba6967b77493216482e123f14edcc
BLAKE2b-256 5d6b249fcd0c43ab000e1ef9f0aa8e0c8255ea7ef4391b6f2dc8acec00315f85

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