dme 插件支持 Pagermaid_Pyro (#12)

Co-authored-by: omg-xtao <100690902+omg-xtao@users.noreply.github.com>
This commit is contained in:
Bascter-Main 2022-06-22 12:10:19 +08:00 committed by GitHub
parent b8f952d462
commit beadf6f747
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 0 deletions

12
dme/dme.py Normal file
View File

@ -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)

View File

@ -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"
}
]
}