mirror of
https://github.com/TeamPGM/PagerMaid_Plugins_Pyro.git
synced 2024-11-16 08:19:25 +00:00
dme 插件支持 Pagermaid_Pyro (#12)
Co-authored-by: omg-xtao <100690902+omg-xtao@users.noreply.github.com>
This commit is contained in:
parent
b8f952d462
commit
beadf6f747
12
dme/dme.py
Normal file
12
dme/dme.py
Normal 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)
|
10
list.json
10
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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user