From cf7e7a2f8038270495abd7d79de642ce29932536 Mon Sep 17 00:00:00 2001 From: Lint Action Date: Sun, 6 Feb 2022 03:33:17 +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 | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'ATRI/plugins/setu/__init__.py') diff --git a/ATRI/plugins/setu/__init__.py b/ATRI/plugins/setu/__init__.py index 009b23d..ccca30d 100644 --- a/ATRI/plugins/setu/__init__.py +++ b/ATRI/plugins/setu/__init__.py @@ -17,9 +17,7 @@ random_setu = Setu().on_command("来张涩图", "来张随机涩图,冷却2分 @random_setu.handle() -async def _random_setu( - bot: Bot, event: MessageEvent -): +async def _random_setu(bot: Bot, event: MessageEvent): loop = asyncio.get_running_loop() repo, setu = await Setu().random_setu() @@ -34,7 +32,9 @@ async def _random_setu( loop.create_task(Setu().async_recall(bot, event_id)) -@random_setu.got("r_rush_after_think", prompt="看完不来点感想么-w-", parameterless=[Cooldown(120)]) +@random_setu.got( + "r_rush_after_think", prompt="看完不来点感想么-w-", parameterless=[Cooldown(120)] +) async def _(think: str = ArgPlainText("r_rush_after_think")): is_repo = will_think(think) if not is_repo: @@ -47,9 +47,7 @@ tag_setu = Setu().on_regex(r"来[张点丶份](.*?)的[涩色🐍]图", "根据 @tag_setu.handle([Cooldown(5, prompt="慢...慢一..点❤")]) -async def _tag_setu( - bot: Bot, event: MessageEvent -): +async def _tag_setu(bot: Bot, event: MessageEvent): loop = asyncio.get_running_loop() msg = str(event.get_message()).strip() -- cgit v1.2.3