diff options
Diffstat (limited to 'ATRI/plugins')
| -rw-r--r-- | ATRI/plugins/status.py | 12 | 
1 files changed, 7 insertions, 5 deletions
| diff --git a/ATRI/plugins/status.py b/ATRI/plugins/status.py index d6a5682..dbf95dc 100644 --- a/ATRI/plugins/status.py +++ b/ATRI/plugins/status.py @@ -51,11 +51,13 @@ async def _():          except Exception:              bot = None          if not limiter.check("114514"): -            try: -                if bot: await plugin.send_to_master(msg) -                limiter.increase("114514") -            except Exception: -                return +            msg = "状态检查提示已达限制, 将冷却 6h" +         +        try: +            if bot: await plugin.send_to_master(msg) +            limiter.increase("114514") +        except Exception: +            return      else:          log.info("资源消耗正常") | 
