From 00562b8d4af1ecf7b6fff16731a262aa7e6ed95c Mon Sep 17 00:00:00 2001 From: Pentacene <48641773+Pentacene@users.noreply.github.com> Date: Wed, 26 Aug 2020 06:38:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E7=BB=9F=E4=B8=80portball?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- portball.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/portball.py b/portball.py index ab50dd7..285af32 100644 --- a/portball.py +++ b/portball.py @@ -6,7 +6,7 @@ from datetime import timedelta from telethon.tl.types import ChannelParticipantsAdmins -@listener(incoming=True, outgoing=True, command="portball", +@listener(is_plugin=True, incoming=True, outgoing=True, command="portball", description="回复你要临时禁言的人的消息来实现XX秒的禁言", parameters="<理由>(空格)<时间/秒>") async def portball(context): @@ -63,4 +63,4 @@ async def portball(context): try: await context.delete() except: - pass \ No newline at end of file + pass