summaryrefslogtreecommitdiff
path: root/ATRI/plugins/setu/__init__.py
diff options
context:
space:
mode:
authorKyomotoi <[email protected]>2022-02-18 13:00:10 +0800
committerKyomotoi <[email protected]>2022-02-18 23:12:09 +0800
commitfbb6ca92eea1678ebb95e7ba4748f1aa0a1bb3d6 (patch)
tree51b2e25493df39eb9c34ff7bfe7cc84badab2394 /ATRI/plugins/setu/__init__.py
parent8e938dc1314d3e90530911e96ee199788b972622 (diff)
downloadATRI-fbb6ca92eea1678ebb95e7ba4748f1aa0a1bb3d6.tar.gz
ATRI-fbb6ca92eea1678ebb95e7ba4748f1aa0a1bb3d6.tar.bz2
ATRI-fbb6ca92eea1678ebb95e7ba4748f1aa0a1bb3d6.zip
🐛 修复冷却触发错误
Diffstat (limited to 'ATRI/plugins/setu/__init__.py')
-rw-r--r--ATRI/plugins/setu/__init__.py8
1 files changed, 4 insertions, 4 deletions
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: