mirror of
https://github.com/TeamPGM/PagerMaid_Plugins_Pyro.git
synced 2024-11-16 08:59:00 +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.utils import Message, lang
|
||||
from pagermaid.utils import Message, lang, alias_command
|
||||
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,
|
||||
description=lang('sp_des'),
|
||||
parameters=lang('sp_parameters'))
|
||||
async def dme(message: Message):
|
||||
async def dme(_: Client, message: Message):
|
||||
""" Deletes specific amount of messages you sent. """
|
||||
await self_prune(message)
|
||||
await self_prune(_, message)
|
||||
|
Loading…
Reference in New Issue
Block a user