PagerMaid_Plugins_Pyro/dme/main.py
Bascter-Main c5132a857e
修复 dme 代码 (#14)
Co-authored-by: omg-xtao <100690902+omg-xtao@users.noreply.github.com>
2022-06-22 12:55:20 +08:00

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)