diff --git a/dme/main.py b/dme/main.py index 9f57024..e24457a 100644 --- a/dme/main.py +++ b/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.utils import Message, lang, alias_command +from pagermaid.utils import Message, lang 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, description=lang('sp_des'), parameters=lang('sp_parameters')) -async def dme(_: Client, message: Message): +async def dme(message: Message): """ Deletes specific amount of messages you sent. """ - await self_prune(_, message) + await self_prune(bot, message) diff --git a/list.json b/list.json index d4bc6af..7dc5baf 100644 --- a/list.json +++ b/list.json @@ -182,7 +182,7 @@ }, { "name": "dme", - "version": "1.22", + "version": "1.221", "section": "chat", "maintainer": "xtaodada", "size": "506 b",