From 8cdf658ded86d95527ff2070492078729de5c096 Mon Sep 17 00:00:00 2001 From: Lint Action Date: Tue, 4 Oct 2022 05:23:34 +0000 Subject: =?UTF-8?q?:rotating=5Flight:=20=E8=87=AA=E5=8A=A8=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ATRI/plugins/auto_tietie.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ATRI/plugins') diff --git a/ATRI/plugins/auto_tietie.py b/ATRI/plugins/auto_tietie.py index 1a2c0bc..61f1370 100644 --- a/ATRI/plugins/auto_tietie.py +++ b/ATRI/plugins/auto_tietie.py @@ -32,13 +32,16 @@ _tietie_wd = choice( tt = Service("贴贴", "全自动贴贴机", True, is_in_service("贴贴"), permission=SUPERUSER) -auto_tietie = tt.on_message("贴贴w", "只与维护者贴贴w, '不可以贴'以拒绝贴贴~, '来贴贴'以接受贴贴~", block=False, priority=11) +auto_tietie = tt.on_message( + "贴贴w", "只与维护者贴贴w, '不可以贴'以拒绝贴贴~, '来贴贴'以接受贴贴~", block=False, priority=11 +) + @auto_tietie.handle([Cooldown(600)]) async def _(event: MessageEvent): if not _is_tietie: await auto_tietie.finish() - + user_id = event.get_user_id() at = MessageSegment.at(user_id) result = at + _tietie_wd -- cgit v1.2.3