PagerMaid_Plugins/dme.py

14 lines
476 B
Python
Raw Permalink Normal View History

2020-08-11 14:24:26 +00:00
""" Module to automate message deletion. """
2022-01-18 08:47:20 +00:00
from pagermaid import version
2020-08-11 14:24:26 +00:00
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)