更新 dme 代码 (#13)

This commit is contained in:
Bascter-Main 2022-06-22 12:32:11 +08:00 committed by GitHub
parent 6bfa57d1a3
commit 049698b583
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,12 +1,13 @@
""" Module to automate message deletion. """
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import Message, lang from pagermaid.utils import Message, lang, alias_command
from pagermaid.modules.prune import self_prune from pagermaid.modules.prune import self_prune
@listener(is_plugin=False, command="dme", @listener(is_plugin=False, outgoing=True, command=alias_command("dme"),
need_admin=True, need_admin=True,
description=lang('sp_des'), description=lang('sp_des'),
parameters=lang('sp_parameters')) parameters=lang('sp_parameters'))
async def dme(message: Message): async def dme(_: Client, message: Message):
""" Deletes specific amount of messages you sent. """ """ Deletes specific amount of messages you sent. """
await self_prune(message) await self_prune(_, message)

View File

@ -182,10 +182,10 @@
}, },
{ {
"name": "dme", "name": "dme",
"version": "1.21", "version": "1.22",
"section": "chat", "section": "chat",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "490 b", "size": "506 b",
"supported": true, "supported": true,
"des-short": "删除当前对话您发送的特定数量的消息。", "des-short": "删除当前对话您发送的特定数量的消息。",
"des": "删除当前对话您发送的特定数量的消息。\n指令-dme" "des": "删除当前对话您发送的特定数量的消息。\n指令-dme"