格式统一portball

This commit is contained in:
Pentacene 2020-08-26 06:38:52 +08:00 committed by GitHub
parent 95da441c26
commit 00562b8d4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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