This commit is contained in:
shenjack 2024-06-10 16:55:12 +08:00
parent 6d6e07a48f
commit dade195e76
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -291,6 +291,8 @@ def on_ica_message(msg: IcaNewMessage, client: IcaClient) -> None:
if '\n' in msg.content: if '\n' in msg.content:
return return
try: try:
if not msg.content.startswith("/b"):
return
global backend_version global backend_version
if backend_version == "unknown": if backend_version == "unknown":
dashboard_status = wrap_request("https://bd.bangbang93.com/openbmclapi/metric/version", msg, client) 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: if '\n' in msg.content:
return return
try: try:
if not msg.content.startswith("/b"):
return
global backend_version global backend_version
if backend_version == "unknown": if backend_version == "unknown":
dashboard_status = wrap_request("https://bd.bangbang93.com/openbmclapi/metric/version", msg, client) dashboard_status = wrap_request("https://bd.bangbang93.com/openbmclapi/metric/version", msg, client)