diff options
author | Lint Action <[email protected]> | 2022-10-04 05:23:34 +0000 |
---|---|---|
committer | Lint Action <[email protected]> | 2022-10-04 05:23:34 +0000 |
commit | 8cdf658ded86d95527ff2070492078729de5c096 (patch) | |
tree | 8ef2ad8836bbf697cf1aeee2b0ded2c9eaf57c6b | |
parent | 2fdfe6513efb98847b01027ae7d32cae43ae77f2 (diff) | |
download | ATRI-8cdf658ded86d95527ff2070492078729de5c096.tar.gz ATRI-8cdf658ded86d95527ff2070492078729de5c096.tar.bz2 ATRI-8cdf658ded86d95527ff2070492078729de5c096.zip |
:rotating_light: 自动进行代码格式化
-rw-r--r-- | ATRI/plugins/auto_tietie.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ATRI/plugins/auto_tietie.py b/ATRI/plugins/auto_tietie.py index 1a2c0bc..61f1370 100644 --- a/ATRI/plugins/auto_tietie.py +++ b/ATRI/plugins/auto_tietie.py @@ -32,13 +32,16 @@ _tietie_wd = choice( tt = Service("贴贴", "全自动贴贴机", True, is_in_service("贴贴"), permission=SUPERUSER) -auto_tietie = tt.on_message("贴贴w", "只与维护者贴贴w, '不可以贴'以拒绝贴贴~, '来贴贴'以接受贴贴~", block=False, priority=11) +auto_tietie = tt.on_message( + "贴贴w", "只与维护者贴贴w, '不可以贴'以拒绝贴贴~, '来贴贴'以接受贴贴~", block=False, priority=11 +) + @auto_tietie.handle([Cooldown(600)]) async def _(event: MessageEvent): if not _is_tietie: await auto_tietie.finish() - + user_id = event.get_user_id() at = MessageSegment.at(user_id) result = at + _tietie_wd |