Metadata-Version: 2.1
Name: nonebot-plugin-withdraw
Version: 0.2.1
Summary: A simple withdraw plugin for Nonebot2
Home-page: https://github.com/MeetWq/nonebot-plugin-withdraw
License: MIT
Author: meetwq
Author-email: meetwq@gmail.com
Requires-Python: >=3.7.3,<4.0.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: nonebot-adapter-onebot (>=2.0.0-beta.1,<3.0.0)
Requires-Dist: nonebot2 (>=2.0.0-beta.1,<3.0.0)
Project-URL: Repository, https://github.com/MeetWq/nonebot-plugin-withdraw
Description-Content-Type: text/markdown

# nonebot-plugin-withdraw

基于 [nonebot2](https://github.com/nonebot/nonebot2) 的简单撤回插件，让机器人撤回 **自己发出的消息**

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

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


### 使用

**以下命令需要加[命令前缀](https://v2.nonebot.dev/docs/api/config#Config-command_start) (默认为`/`)，可自行设置为空**

#### 方式1：

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

*注：若命令前缀为空则需要 @机器人，否则可不@*

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

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

示例：

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

#### 方式2：

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

