diff options
Diffstat (limited to 'ATRI/exceptions.py')
-rw-r--r-- | ATRI/exceptions.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ATRI/exceptions.py b/ATRI/exceptions.py index 03159b9..1f29238 100644 --- a/ATRI/exceptions.py +++ b/ATRI/exceptions.py @@ -136,6 +136,9 @@ 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 try: await bot.send(event, msg) |