修复 dme 代码 (#14)

Co-authored-by: omg-xtao <100690902+omg-xtao@users.noreply.github.com>
This commit is contained in:
Bascter-Main 2022-06-22 12:55:20 +08:00 committed by GitHub
parent 049698b583
commit c5132a857e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 6 deletions

View File

@ -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)

View File

@ -182,7 +182,7 @@
},
{
"name": "dme",
"version": "1.22",
"version": "1.221",
"section": "chat",
"maintainer": "xtaodada",
"size": "506 b",