mirror of
https://github.com/TeamPGM/PagerMaid_Plugins_Pyro.git
synced 2024-11-22 10:16:57 +00:00
修复 dme 代码 (#14)
Co-authored-by: omg-xtao <100690902+omg-xtao@users.noreply.github.com>
This commit is contained in:
parent
049698b583
commit
c5132a857e
11
dme/main.py
11
dme/main.py
@ -1,13 +1,14 @@
|
|||||||
""" Module to automate message deletion. """
|
""" Module to message deletion. """
|
||||||
|
from pagermaid import bot
|
||||||
from pagermaid.listener import listener
|
from pagermaid.listener import listener
|
||||||
from pagermaid.utils import Message, lang, alias_command
|
from pagermaid.utils import Message, lang
|
||||||
from pagermaid.modules.prune import self_prune
|
from pagermaid.modules.prune import self_prune
|
||||||
|
|
||||||
|
|
||||||
@listener(is_plugin=False, outgoing=True, command=alias_command("dme"),
|
@listener(is_plugin=False, 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(_: Client, message: Message):
|
async def dme(message: Message):
|
||||||
""" Deletes specific amount of messages you sent. """
|
""" Deletes specific amount of messages you sent. """
|
||||||
await self_prune(_, message)
|
await self_prune(bot, message)
|
||||||
|
Loading…
Reference in New Issue
Block a user