diff options
author | Kyomotoi <[email protected]> | 2022-11-04 10:17:46 +0800 |
---|---|---|
committer | Kyomotoi <[email protected]> | 2022-11-04 10:17:46 +0800 |
commit | 790e4b49e4394565aba3a76c10ed6b90ffb37c9b (patch) | |
tree | 472daeafd3733119ac029d69ad111b88caef3916 /ATRI/plugins/anti_effort | |
parent | 62a3aa46441d9f2f2e5e4857c6769d7ac99e14d9 (diff) | |
download | ATRI-790e4b49e4394565aba3a76c10ed6b90ffb37c9b.tar.gz ATRI-790e4b49e4394565aba3a76c10ed6b90ffb37c9b.tar.bz2 ATRI-790e4b49e4394565aba3a76c10ed6b90ffb37c9b.zip |
🎨 跟随基础设施变化, 优化代码
Diffstat (limited to 'ATRI/plugins/anti_effort')
-rw-r--r-- | ATRI/plugins/anti_effort/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ATRI/plugins/anti_effort/__init__.py b/ATRI/plugins/anti_effort/__init__.py index 4e3a7ec..aa38f78 100644 --- a/ATRI/plugins/anti_effort/__init__.py +++ b/ATRI/plugins/anti_effort/__init__.py @@ -26,7 +26,7 @@ ae = AntiEffort() _lmt_notice = choice(["慢...慢一..点❤", "冷静1下", "歇会歇会~~", "呜呜...别急"]) -__GET_URL_MSG = ( +_GET_URL_MSG = ( MessageBuilder("请键入wakatime share embed URL:") .text("- 前往 wakatime.com/share/embed") .text("- Format 选择 JSON") @@ -41,7 +41,7 @@ add_user = plugin.on_command("!我也要卷", "加入卷王统计榜") @add_user.got( "waka_url", - __GET_URL_MSG, + _GET_URL_MSG, ) @add_user.got("rank_nickname", "如何在排行榜中称呼你捏") @add_user.got("to_global", "你希望加入公共排行榜吗?(y/n)", [Cooldown(60, prompt=_lmt_notice)]) @@ -80,7 +80,7 @@ async def _join_global_rank(event: GroupMessageEvent): await join_global_rank.finish("完成~!") -@join_global_rank.got("waka_url", __GET_URL_MSG) +@join_global_rank.got("waka_url", _GET_URL_MSG) @join_global_rank.got( "rank_nickname", "如何在排行榜中称呼你捏", [Cooldown(60, prompt=_lmt_notice)] ) |