PagerMaid_Plugins/dme.py

13 lines
446 B
Python
Raw Normal View History

2020-08-11 14:24:26 +00:00
""" Module to automate message deletion. """
from pagermaid.listener import listener
2022-01-16 12:35:14 +00:00
from pagermaid.utils import alias_command, lang
2022-01-16 12:43:13 +00:00
from pagermaid.modules.prune import selfprune
2020-08-11 14:24:26 +00:00
2022-01-16 12:35:14 +00:00
@listener(is_plugin=False, outgoing=True, command=alias_command("dme"),
description=lang('sp_des'),
parameters=lang('sp_parameters'))
2022-01-16 12:43:13 +00:00
async def dme(context):
2020-08-11 14:24:26 +00:00
""" Deletes specific amount of messages you sent. """
2022-01-16 12:43:13 +00:00
await selfprune(context)