Debug
This commit is contained in:
parent
e28d653921
commit
068af17935
@ -34,9 +34,8 @@ def sendmessage(target, message):
|
||||
ws.send(json_command) # Send message to WebSocket
|
||||
responsejson = ws.recv() # Receive response
|
||||
response = json.loads(responsejson)
|
||||
pprint(response['resp'])
|
||||
# for chatitem in response['chatitems']:
|
||||
# print(chatitem)
|
||||
for chatitem in response['resp']['chatItems']:
|
||||
print(chatitem)
|
||||
# print("Message %s sent over websocket to %s" % (chatitem['content'], target))
|
||||
# ws.close() # Close WebSocket connection
|
||||
# print(response)
|
||||
|
Loading…
Reference in New Issue
Block a user