mirror of
https://github.com/TeamPGM/PagerMaid_Plugins_Pyro.git
synced 2024-11-25 19:36:27 +00:00
c5132a857e
Co-authored-by: omg-xtao <100690902+omg-xtao@users.noreply.github.com>
15 lines
470 B
Python
15 lines
470 B
Python
""" Module to message deletion. """
|
|
from pagermaid import bot
|
|
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(bot, message)
|