From cf506e1463c5b7e6ac5b5eed6271978515494af9 Mon Sep 17 00:00:00 2001 From: Lint Action Date: Sun, 20 Nov 2022 11:16:56 +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/setu/__init__.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/ATRI/plugins/setu/__init__.py b/ATRI/plugins/setu/__init__.py index b7dc5f4..46675fc 100644 --- a/ATRI/plugins/setu/__init__.py +++ b/ATRI/plugins/setu/__init__.py @@ -38,10 +38,7 @@ async def _random_setu(bot: Bot, event: MessageEvent): await random_setu.finish("hso(发不出") msg_id = msg_1["message_id"] - loop.call_later( - 60, - lambda: loop.create_task(bot.delete_msg(message_id=msg_id)) - ) + loop.call_later(60, lambda: loop.create_task(bot.delete_msg(message_id=msg_id))) @random_setu.got("r_rush_after_think", prompt="看完不来点感想么-w-") @@ -75,10 +72,7 @@ async def _tag_setu(bot: Bot, event: MessageEvent): await random_setu.finish("hso(发不出") msg_id = msg_1["message_id"] - loop.call_later( - 60, - lambda: loop.create_task(bot.delete_msg(message_id=msg_id)) - ) + loop.call_later(60, lambda: loop.create_task(bot.delete_msg(message_id=msg_id))) @tag_setu.got("t_rush_after_think", prompt="看完不来点感想么-w-") -- cgit v1.2.3