diff --git a/bot/examples/pingpong.py b/bot/examples/pingpong.py index 6cd4c3d..6436318 100644 --- a/bot/examples/pingpong.py +++ b/bot/examples/pingpong.py @@ -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"])