diff options
author | Lint Action <[email protected]> | 2022-02-06 03:33:17 +0000 |
---|---|---|
committer | Lint Action <[email protected]> | 2022-02-06 03:33:17 +0000 |
commit | cf7e7a2f8038270495abd7d79de642ce29932536 (patch) | |
tree | 9316877cb54d6dc9ad4ab0e34e60c4e8d3347100 /ATRI | |
parent | e1f2f0e3d108ce752c1601cecef49217ed4aff7b (diff) | |
download | ATRI-cf7e7a2f8038270495abd7d79de642ce29932536.tar.gz ATRI-cf7e7a2f8038270495abd7d79de642ce29932536.tar.bz2 ATRI-cf7e7a2f8038270495abd7d79de642ce29932536.zip |
:rotating_light: 自动进行代码格式化
Diffstat (limited to 'ATRI')
-rw-r--r-- | ATRI/plugins/setu/__init__.py | 12 | ||||
-rw-r--r-- | ATRI/plugins/wife/__init__.py | 4 |
2 files changed, 8 insertions, 8 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() diff --git a/ATRI/plugins/wife/__init__.py b/ATRI/plugins/wife/__init__.py index bebc885..e783946 100644 --- a/ATRI/plugins/wife/__init__.py +++ b/ATRI/plugins/wife/__init__.py @@ -113,7 +113,9 @@ async def _get_wife(bot: Bot, event: GroupMessageEvent): ).dict() Wife().save_marry_list(data) - repo_1 = f"好欸!{lucky_user_card}({lucky_user}) 成为了 {req_user_card}({user_id}) 的 {is_nick}" + repo_1 = ( + f"好欸!{lucky_user_card}({lucky_user}) 成为了 {req_user_card}({user_id}) 的 {is_nick}" + ) await get_wife.finish(repo_1) |