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.2.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

nonebot_plugin_withdraw-0.2.2-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot_plugin_withdraw-0.2.2.tar.gz
  • Upload date:
  • Size: 4.2 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.2.tar.gz
Algorithm Hash digest
SHA256 546edfa8d0bc5a0267cf41d553abb1c9957f2a565fcc14f18617ede50cf95357
MD5 f96b1982dceeace9d5ef9862a0c6b023
BLAKE2b-256 77c43f6ae47bc6406565a5ade21c039213ce6731d9970ff54d0e104a2e313f4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_withdraw-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 077fa2101c226b496f2c6aa448e6cebdeeb0d7e227269cbee0536ad192ece9e7
MD5 ae3bcf57dd155b304fd2c9aaf1e250b8
BLAKE2b-256 338dabd540aaa89f7c2f6756736dd2a55664ba3658646c1ba749061d95740fd8

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