From 093b9f750339762e89e451381f9eef527bdc3d77 Mon Sep 17 00:00:00 2001 From: Kyomotoi <0w0@imki.moe> Date: Sat, 7 Jan 2023 21:20:22 +0800 Subject: =?UTF-8?q?=F0=9F=8E=A8=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/exceptions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ATRI') diff --git a/ATRI/exceptions.py b/ATRI/exceptions.py index 457acc8..cd54db4 100644 --- a/ATRI/exceptions.py +++ b/ATRI/exceptions.py @@ -133,7 +133,8 @@ async def _(bot: Bot, event, matcher: Matcher, exception: Optional[Exception]): group_id = str(event.group_id) if not limiter.check(group_id): msg = MessageBuilder("该群报错提示已达限制, 将冷却10min").text("如需反馈请: 来杯红茶") - limiter.increase(group_id) + else: + limiter.increase(group_id) try: await matcher.finish(msg) -- cgit v1.2.3