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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nonebot_plugin_withdraw-0.2.1.tar.gz
.
File metadata
- Download URL: nonebot_plugin_withdraw-0.2.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.8.10 Linux/5.4.72-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7b0637441691835432a5c7411fd17f1a66d5217a922f14874ec1c5401d911dc |
|
MD5 | 109832b1b3f18496e917ef67ba92ef26 |
|
BLAKE2b-256 | 47adc2744995147baa40529bd332965c898911cd8cfef18d810cc09f5259b9db |
File details
Details for the file nonebot_plugin_withdraw-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: nonebot_plugin_withdraw-0.2.1-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.8.10 Linux/5.4.72-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26b3f86397d429e1f8b795b9f9a110edfa1048fd9c3ffe6d364d8087e5427f19 |
|
MD5 | ce8a196a9b660121861db531eb1d75ff |
|
BLAKE2b-256 | 66601e17813bd03b8a423e62e9075ffe5dcc19c2560ca8a9e8f88128874857b9 |