mirror of
https://github.com/open-webui/bot
synced 2025-05-15 18:06:31 +00:00
fix
This commit is contained in:
parent
133c0df876
commit
3eab63b6c0
@ -24,9 +24,10 @@ def events(sio, user_id):
|
|||||||
# Ignore events from the bot itself
|
# Ignore events from the bot itself
|
||||||
return
|
return
|
||||||
|
|
||||||
print(f"{data["user"]["name"]}: {data["data"]["data"]["content"]}")
|
print(f'{data["user"]["name"]}: {data["data"]["data"]["content"]}')
|
||||||
send_message(data["channel_id"], "Pong!")
|
send_message(data["channel_id"], "Pong!")
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
print(f"Connecting to {WEBUI_URL}...")
|
print(f"Connecting to {WEBUI_URL}...")
|
||||||
sio.connect(WEBUI_URL, socketio_path="/ws/socket.io", transports=["websocket"])
|
sio.connect(WEBUI_URL, socketio_path="/ws/socket.io", transports=["websocket"])
|
||||||
|
Loading…
Reference in New Issue
Block a user