mirror of
https://github.com/TeamPGM/PagerMaid_Plugins_Pyro.git
synced 2024-11-22 08:27:39 +00:00
更新 dme 代码 (#13)
This commit is contained in:
parent
6bfa57d1a3
commit
049698b583
@ -1,12 +1,13 @@
|
|||||||
|
""" Module to automate message deletion. """
|
||||||
from pagermaid.listener import listener
|
from pagermaid.listener import listener
|
||||||
from pagermaid.utils import Message, lang
|
from pagermaid.utils import Message, lang, alias_command
|
||||||
from pagermaid.modules.prune import self_prune
|
from pagermaid.modules.prune import self_prune
|
||||||
|
|
||||||
|
|
||||||
@listener(is_plugin=False, command="dme",
|
@listener(is_plugin=False, outgoing=True, command=alias_command("dme"),
|
||||||
need_admin=True,
|
need_admin=True,
|
||||||
description=lang('sp_des'),
|
description=lang('sp_des'),
|
||||||
parameters=lang('sp_parameters'))
|
parameters=lang('sp_parameters'))
|
||||||
async def dme(message: Message):
|
async def dme(_: Client, message: Message):
|
||||||
""" Deletes specific amount of messages you sent. """
|
""" Deletes specific amount of messages you sent. """
|
||||||
await self_prune(message)
|
await self_prune(_, message)
|
||||||
|
@ -182,10 +182,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "dme",
|
"name": "dme",
|
||||||
"version": "1.21",
|
"version": "1.22",
|
||||||
"section": "chat",
|
"section": "chat",
|
||||||
"maintainer": "xtaodada",
|
"maintainer": "xtaodada",
|
||||||
"size": "490 b",
|
"size": "506 b",
|
||||||
"supported": true,
|
"supported": true,
|
||||||
"des-short": "删除当前对话您发送的特定数量的消息。",
|
"des-short": "删除当前对话您发送的特定数量的消息。",
|
||||||
"des": "删除当前对话您发送的特定数量的消息。\n指令:-dme"
|
"des": "删除当前对话您发送的特定数量的消息。\n指令:-dme"
|
||||||
|
Loading…
Reference in New Issue
Block a user