From 6bad36e2b2b67078e5353875148ba3e6cc2e7357 Mon Sep 17 00:00:00 2001 From: Kyomotoi <0w0@imki.moe> Date: Thu, 28 Jul 2022 16:24:52 +0800 Subject: =?UTF-8?q?=F0=9F=92=A9=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ATRI/plugins/anti_effort/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ATRI/plugins/anti_effort') diff --git a/ATRI/plugins/anti_effort/__init__.py b/ATRI/plugins/anti_effort/__init__.py index c21ed93..2890e22 100644 --- a/ATRI/plugins/anti_effort/__init__.py +++ b/ATRI/plugins/anti_effort/__init__.py @@ -76,7 +76,9 @@ async def _join_global_rank(event: GroupMessageEvent): @join_global_rank.got("waka_url", _GET_URL_MSG) -@join_global_rank.got("rank_nickname", "如何在排行榜中称呼你捏") +@join_global_rank.got( + "rank_nickname", "如何在排行榜中称呼你捏", [Cooldown(60, prompt=_lmt_notice)] +) async def _( event: GroupMessageEvent, url: str = ArgPlainText("waka_url"), @@ -89,11 +91,9 @@ async def _( user_leave = AntiEffort().on_command("!我不卷了", "退出卷王统计榜") -user_leave_cmd = AntiEffort().cmd_as_group("leave", "退出卷王统计榜") @user_leave.handle([Cooldown(60, prompt=_lmt_notice)]) -@user_leave_cmd.handle([Cooldown(60, prompt=_lmt_notice)]) async def _user_leave(event: GroupMessageEvent): group_id = event.group_id user_id = event.user_id -- cgit v1.2.3