From 9dfe4e006adbfe061ccb5c87915d750c550c34a0 Mon Sep 17 00:00:00 2001 From: Kyomotoi <0w0@imki.moe> Date: Fri, 30 Dec 2022 14:31:44 +0800 Subject: =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20=E6=B7=BB=E5=8A=A0=E6=AC=A1?= =?UTF-8?q?=E6=95=B0=E9=99=90=E5=88=B6=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ATRI/plugins/status.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'ATRI') 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("资源消耗正常") -- cgit v1.2.3