diff options
author | Kyomotoi <[email protected]> | 2022-12-30 16:16:33 +0800 |
---|---|---|
committer | Kyomotoi <[email protected]> | 2022-12-30 16:16:33 +0800 |
commit | 0ae2001ff6c50ed85fe970da8fbfc577a70488d5 (patch) | |
tree | 3d259db8138e7ba6f7b7a1748ce27b449f22f158 /ATRI | |
parent | db9bf6729f86a26eda105a2e9aca8dac1cfd4bc5 (diff) | |
parent | 2bc1d05393f36c7b1ce5499f698ac3a2f1d3be0d (diff) | |
download | ATRI-0ae2001ff6c50ed85fe970da8fbfc577a70488d5.tar.gz ATRI-0ae2001ff6c50ed85fe970da8fbfc577a70488d5.tar.bz2 ATRI-0ae2001ff6c50ed85fe970da8fbfc577a70488d5.zip |
Merge branch 'main' of https://github.com/Kyomotoi/ATRI
Diffstat (limited to 'ATRI')
-rw-r--r-- | ATRI/plugins/status.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ATRI/plugins/status.py b/ATRI/plugins/status.py index dbf95dc..70ea18d 100644 --- a/ATRI/plugins/status.py +++ b/ATRI/plugins/status.py @@ -52,9 +52,10 @@ async def _(): bot = None if not limiter.check("114514"): msg = "状态检查提示已达限制, 将冷却 6h" - + try: - if bot: await plugin.send_to_master(msg) + if bot: + await plugin.send_to_master(msg) limiter.increase("114514") except Exception: return @@ -134,4 +135,4 @@ def get_status() -> Tuple[str, bool]: msg=msg, ) - return unescape(msg0), is_ok
\ No newline at end of file + return unescape(msg0), is_ok |