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