From beadf6f7472caea4a2995581eb6973b17a486381 Mon Sep 17 00:00:00 2001 From: Bascter-Main <25437043+Bascter-Main@users.noreply.github.com> Date: Wed, 22 Jun 2022 12:10:19 +0800 Subject: [PATCH] =?UTF-8?q?dme=20=E6=8F=92=E4=BB=B6=E6=94=AF=E6=8C=81=20Pa?= =?UTF-8?q?germaid=5FPyro=20(#12)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: omg-xtao <100690902+omg-xtao@users.noreply.github.com> --- dme/dme.py | 12 ++++++++++++ list.json | 10 ++++++++++ 2 files changed, 22 insertions(+) create mode 100644 dme/dme.py diff --git a/dme/dme.py b/dme/dme.py new file mode 100644 index 0000000..ea2c6e3 --- /dev/null +++ b/dme/dme.py @@ -0,0 +1,12 @@ +from pagermaid.listener import listener +from pagermaid.utils import Message, lang +from pagermaid.modules.prune import self_prune + + +@listener(is_plugin=False, command="dme", + need_admin=True, + description=lang('sp_des'), + parameters=lang('sp_parameters')) +async def dme(message: Message): + """ Deletes specific amount of messages you sent. """ + await self_prune(message) diff --git a/list.json b/list.json index a198dc4..164bd5f 100644 --- a/list.json +++ b/list.json @@ -179,6 +179,16 @@ "supported": true, "des-short": "自动转发/备份频道消息", "des": "自动转发频道新消息或者从零开始备份频道。\n指令:-shift\n查看帮助:-help shift" + }, + { + "name": "dme", + "version": "1.21", + "section": "chat", + "maintainer": "xtaodada", + "size": "490 b", + "supported": true, + "des-short": "删除当前对话您发送的特定数量的消息。", + "des": "删除当前对话您发送的特定数量的消息。\n指令:-dme" } ] }