diff options
author | Kyomotoi <[email protected]> | 2023-01-07 21:20:22 +0800 |
---|---|---|
committer | Kyomotoi <[email protected]> | 2023-01-07 21:20:22 +0800 |
commit | 093b9f750339762e89e451381f9eef527bdc3d77 (patch) | |
tree | 2cca4c5391fb6a73cfcca21634c92eb9df1b1c6f /ATRI | |
parent | e5aece46ced6c9558641b9f33436c304d7236ff4 (diff) | |
download | ATRI-093b9f750339762e89e451381f9eef527bdc3d77.tar.gz ATRI-093b9f750339762e89e451381f9eef527bdc3d77.tar.bz2 ATRI-093b9f750339762e89e451381f9eef527bdc3d77.zip |
🎨 优化代码
Diffstat (limited to 'ATRI')
-rw-r--r-- | ATRI/exceptions.py | 3 |
1 files changed, 2 insertions, 1 deletions
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) |