summaryrefslogtreecommitdiff
path: root/ATRI/plugins/setu/__init__.py
diff options
context:
space:
mode:
authorLint Action <[email protected]>2022-02-06 03:33:17 +0000
committerLint Action <[email protected]>2022-02-06 03:33:17 +0000
commitcf7e7a2f8038270495abd7d79de642ce29932536 (patch)
tree9316877cb54d6dc9ad4ab0e34e60c4e8d3347100 /ATRI/plugins/setu/__init__.py
parente1f2f0e3d108ce752c1601cecef49217ed4aff7b (diff)
downloadATRI-cf7e7a2f8038270495abd7d79de642ce29932536.tar.gz
ATRI-cf7e7a2f8038270495abd7d79de642ce29932536.tar.bz2
ATRI-cf7e7a2f8038270495abd7d79de642ce29932536.zip
:rotating_light: 自动进行代码格式化
Diffstat (limited to 'ATRI/plugins/setu/__init__.py')
-rw-r--r--ATRI/plugins/setu/__init__.py12
1 files changed, 5 insertions, 7 deletions
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()