mirror of
http://shenjack.top:5100/shenjack/icalingua-python-bot.git
synced 2024-11-23 20:45:06 +08:00
ruaa
This commit is contained in:
parent
6d6e07a48f
commit
dade195e76
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user