mirror of
https://github.com/open-webui/bot
synced 2025-05-14 01:22:35 +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
|
||||
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!")
|
||||
|
||||
|
||||
try:
|
||||
print(f"Connecting to {WEBUI_URL}...")
|
||||
sio.connect(WEBUI_URL, socketio_path="/ws/socket.io", transports=["websocket"])
|
||||
|
Loading…
Reference in New Issue
Block a user