mirror of
http://shenjack.top:5100/shenjack/icalingua-python-bot.git
synced 2024-11-23 20:45:06 +08:00
fix: 有一个 sio.emit 没 awit
This commit is contained in:
parent
184b9c92ef
commit
386ee4413a
2
main.py
2
main.py
|
@ -210,7 +210,7 @@ async def add_message(data: Dict[str, Any]):
|
||||||
"https://bd.bangbang93.com/openbmclapi/metric/dashboard"
|
"https://bd.bangbang93.com/openbmclapi/metric/dashboard"
|
||||||
) as response:
|
) as response:
|
||||||
if not response.status == "200":
|
if not response.status == "200":
|
||||||
sio.emit(
|
await sio.emit(
|
||||||
"sendMessage",
|
"sendMessage",
|
||||||
reply_msg.to_content(
|
reply_msg.to_content(
|
||||||
f"请求数据失败\n{response.status}"
|
f"请求数据失败\n{response.status}"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user