diff options
author | Lint Action <[email protected]> | 2022-12-30 06:42:47 +0000 |
---|---|---|
committer | Lint Action <[email protected]> | 2022-12-30 06:42:47 +0000 |
commit | 2bc1d05393f36c7b1ce5499f698ac3a2f1d3be0d (patch) | |
tree | bae29c7b280f63458fae0e35e201376314da7a9f /ATRI | |
parent | 5295088ea3f8ac198b627ec5d9aab5bf2ad3bd3d (diff) | |
download | ATRI-2bc1d05393f36c7b1ce5499f698ac3a2f1d3be0d.tar.gz ATRI-2bc1d05393f36c7b1ce5499f698ac3a2f1d3be0d.tar.bz2 ATRI-2bc1d05393f36c7b1ce5499f698ac3a2f1d3be0d.zip |
:rotating_light: 自动进行代码格式化
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 |