From dade195e763ed5902deac2e88466e1489a909068 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Mon, 10 Jun 2024 16:55:12 +0800 Subject: [PATCH] ruaa --- ica-rs/plugins/bmcl.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ica-rs/plugins/bmcl.py b/ica-rs/plugins/bmcl.py index 450b704..106f07e 100644 --- a/ica-rs/plugins/bmcl.py +++ b/ica-rs/plugins/bmcl.py @@ -291,6 +291,8 @@ def on_ica_message(msg: IcaNewMessage, client: IcaClient) -> None: if '\n' in msg.content: return try: + if not msg.content.startswith("/b"): + return global backend_version if backend_version == "unknown": dashboard_status = wrap_request("https://bd.bangbang93.com/openbmclapi/metric/version", msg, client) @@ -330,6 +332,8 @@ def on_tailchat_message(msg, client) -> None: if '\n' in msg.content: return try: + if not msg.content.startswith("/b"): + return global backend_version if backend_version == "unknown": dashboard_status = wrap_request("https://bd.bangbang93.com/openbmclapi/metric/version", msg, client)