From 917f903ef21cd528af7a52d8dbe65bac435eaa51 Mon Sep 17 00:00:00 2001 From: Lint Action Date: Sun, 12 Feb 2023 13:12:55 +0000 Subject: =?UTF-8?q?:rotating=5Flight:=20=E8=87=AA=E5=8A=A8=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ATRI/exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ATRI/exceptions.py b/ATRI/exceptions.py index 1f29238..a4089b7 100644 --- a/ATRI/exceptions.py +++ b/ATRI/exceptions.py @@ -136,7 +136,7 @@ async def _(bot: Bot, event, matcher: Matcher, exception: Optional[Exception]): msg = MessageBuilder("该群报错提示已达限制, 将冷却10min").text("如需反馈请: 来杯红茶") else: limiter.increase(group_id) - + if limiter.get_times(group_id) > 3: return -- cgit v1.2.3