Debug
This commit is contained in:
		
							parent
							
								
									ee6bb28f6a
								
							
						
					
					
						commit
						50ef25c129
					
				@ -35,7 +35,7 @@ def sendmessage(target, message):
 | 
				
			|||||||
    responsejson = ws.recv()  # Receive response
 | 
					    responsejson = ws.recv()  # Receive response
 | 
				
			||||||
    response = json.loads(responsejson)
 | 
					    response = json.loads(responsejson)
 | 
				
			||||||
    for chatitem in response['resp']['chatItems']:
 | 
					    for chatitem in response['resp']['chatItems']:
 | 
				
			||||||
        pprint(chatitem['chatInfo'])
 | 
					        pprint(chatitem['chatItem'])
 | 
				
			||||||
        # print("Message %s sent over websocket to %s" % (chatitem['content']['msgContent']['text'], target))
 | 
					        # print("Message %s sent over websocket to %s" % (chatitem['content']['msgContent']['text'], target))
 | 
				
			||||||
    # ws.close()  # Close WebSocket connection
 | 
					    # ws.close()  # Close WebSocket connection
 | 
				
			||||||
    # print(response)
 | 
					    # print(response)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user