From bdbdc79f1448a3ded5a092159c5aadddb01253d5 Mon Sep 17 00:00:00 2001 From: A0000Xz <629995608@qq.com> Date: Sat, 28 Jun 2025 14:37:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3=EF=BC=8C?= =?UTF-8?q?=E9=A1=BA=E4=BE=BF=E8=A1=A5=E4=B8=80=E4=B8=AA=E7=BC=BA=E5=A4=B1?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- command_args.md | 13 ++++++++++++- requirements.txt | 3 ++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3e76e39..266ebac 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ sequenceDiagram - [x] 读取戳一戳的自定义内容 - [ ] 语音解析(?) - [ ] 所有的notice类 - - [ ] 撤回 + - [x] 撤回(已添加相关指令) - [x] 发送消息 - [x] 发送文本 - [x] 发送图片 diff --git a/command_args.md b/command_args.md index 01390a7..afd5f37 100644 --- a/command_args.md +++ b/command_args.md @@ -46,4 +46,15 @@ Seg.data: Dict[str, Any] = { "qq_id": "目标QQ号" } } -``` \ No newline at end of file +``` + +## 撤回消息 +```python +Seg.data: Dict[str, Any] = { + "name": "DELETE_MSG", + "args": { + "message_id": "消息所对应的message_id" + } +} +``` +message_id怎么搞到手全凭你本事,也请在自己的插件里写好确定是否能撤回对应的消息的功能,毕竟这玩意真的单纯根据message_id撤消息 \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 54d8729..5757fb5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,4 +6,5 @@ maim_message loguru pillow tomlkit -rich \ No newline at end of file +rich +sqlmodel \ No newline at end of file