This commit is contained in:
Timothy Jaeryang Baek 2024-12-25 02:36:35 -07:00
parent 133c0df876
commit 3eab63b6c0

View File

@ -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"])