This commit is contained in:
Guy Van Sanden 2025-02-12 11:26:10 +01:00
parent 958b51ba40
commit 3847d2ea96

View File

@ -35,8 +35,8 @@ def sendmessage(target, message):
responsejson = ws.recv() # Receive response
response = json.loads(responsejson)
for chatitem in response['resp']['chatItems']:
# pprint(chatitem)
print("Message %s sent over websocket to %s" % (chatitem['content']['msgContent']['text'], target))
pprint(chatitem)
# print("Message %s sent over websocket to %s" % (chatitem['content']['msgContent']['text'], target))
# ws.close() # Close WebSocket connection
# print(response)
ws.close()