From f9fe488a2b32bd262092a22b2476e75cfaa5f7c9 Mon Sep 17 00:00:00 2001 From: Kyomotoi <0w0@imki.moe> Date: Tue, 19 Jul 2022 11:58:24 +0800 Subject: =?UTF-8?q?=F0=9F=9A=91=EF=B8=8F=20=E8=A1=A5=E5=85=A8=E5=91=BD?= =?UTF-8?q?=E4=BB=A4=E8=A7=A6=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ATRI/plugins/anti_effort/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ATRI/plugins/anti_effort/__init__.py b/ATRI/plugins/anti_effort/__init__.py index febfdda..fe8e72a 100644 --- a/ATRI/plugins/anti_effort/__init__.py +++ b/ATRI/plugins/anti_effort/__init__.py @@ -31,6 +31,7 @@ async def _add_user(matcher: Matcher, args: Message = CommandArg()): @add_user.got("waka_url", _GET_URL_MSG) +@add_user_cmd.got("waka_url", _GET_URL_MSG) async def _deal_add_user( event: GroupMessageEvent, _url: str = ArgPlainText("waka_url") ): @@ -41,10 +42,12 @@ async def _deal_add_user( await add_user.finish(result) -user_leave = AntiEffort().cmd_as_group("leave", "退出卷王统计榜") +user_leave = AntiEffort().on_command("!我不卷了", "退出卷王统计榜") +user_leave_cmd = AntiEffort().cmd_as_group("leave", "退出卷王统计榜") @user_leave.handle() +@user_leave_cmd.handle() async def _user_leave(event: GroupMessageEvent): group_id = event.group_id user_id = event.user_id -- cgit v1.2.3