From fbb6ca92eea1678ebb95e7ba4748f1aa0a1bb3d6 Mon Sep 17 00:00:00 2001 From: Kyomotoi Date: Fri, 18 Feb 2022 13:00:10 +0800 Subject: =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E5=86=B7=E5=8D=B4?= =?UTF-8?q?=E8=A7=A6=E5=8F=91=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ATRI/plugins/setu/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ATRI/plugins/setu/__init__.py') diff --git a/ATRI/plugins/setu/__init__.py b/ATRI/plugins/setu/__init__.py index b9b533f..0baf51b 100644 --- a/ATRI/plugins/setu/__init__.py +++ b/ATRI/plugins/setu/__init__.py @@ -16,7 +16,7 @@ from .data_source import Setu random_setu = Setu().on_command("来张涩图", "来张随机涩图,冷却2分钟", aliases={"涩图来", "来点涩图", "来份涩图"}) -@random_setu.handle() +@random_setu.handle([Cooldown(120)]) async def _random_setu(bot: Bot, event: MessageEvent): loop = asyncio.get_running_loop() @@ -33,7 +33,7 @@ async def _random_setu(bot: Bot, event: MessageEvent): @random_setu.got( - "r_rush_after_think", prompt="看完不来点感想么-w-", parameterless=[Cooldown(120)] + "r_rush_after_think", prompt="看完不来点感想么-w-" ) async def _(think: str = ArgPlainText("r_rush_after_think")): is_repo = will_think(think) @@ -46,7 +46,7 @@ async def _(think: str = ArgPlainText("r_rush_after_think")): tag_setu = Setu().on_regex(r"来[张点丶份](.*?)的[涩色🐍]图", "根据提供的tag查找涩图,冷却2分钟") -@tag_setu.handle([Cooldown(5, prompt="慢...慢一..点❤")]) +@tag_setu.handle([Cooldown(120, prompt="慢...慢一..点❤")]) async def _tag_setu(bot: Bot, event: MessageEvent): loop = asyncio.get_running_loop() @@ -68,7 +68,7 @@ async def _tag_setu(bot: Bot, event: MessageEvent): loop.create_task(Setu().async_recall(bot, event_id)) -@tag_setu.got("t_rush_after_think", prompt="看完不来点感想么-w-", parameterless=[Cooldown(120)]) +@tag_setu.got("t_rush_after_think", prompt="看完不来点感想么-w-") async def _(think: str = ArgPlainText("t_rush_after_think")): is_repo = will_think(think) if not is_repo: -- cgit v1.2.3