Debug
This commit is contained in:
		
							parent
							
								
									150c03b05a
								
							
						
					
					
						commit
						2e9520d3cd
					
				@ -5,6 +5,7 @@ import json
 | 
				
			|||||||
import yaml
 | 
					import yaml
 | 
				
			||||||
import random
 | 
					import random
 | 
				
			||||||
import threading
 | 
					import threading
 | 
				
			||||||
 | 
					import pprint
 | 
				
			||||||
 | 
					
 | 
				
			||||||
__version__ = "2.0.0b2"
 | 
					__version__ = "2.0.0b2"
 | 
				
			||||||
versionstring='Taurix TellMe server v' + __version__
 | 
					versionstring='Taurix TellMe server v' + __version__
 | 
				
			||||||
@ -33,7 +34,7 @@ def sendmessage(target, message):
 | 
				
			|||||||
    ws.send(json_command)  # Send message to WebSocket
 | 
					    ws.send(json_command)  # Send message to WebSocket
 | 
				
			||||||
    responsejson = ws.recv()  # Receive response
 | 
					    responsejson = ws.recv()  # Receive response
 | 
				
			||||||
    response = json.loads(responsejson)
 | 
					    response = json.loads(responsejson)
 | 
				
			||||||
    print(response['resp'])
 | 
					    pprint(response['resp'])
 | 
				
			||||||
    # for chatitem in response['chatitems']:
 | 
					    # for chatitem in response['chatitems']:
 | 
				
			||||||
    #     print(chatitem)
 | 
					    #     print(chatitem)
 | 
				
			||||||
        # print("Message %s sent over websocket to %s" % (chatitem['content'], target))
 | 
					        # print("Message %s sent over websocket to %s" % (chatitem['content'], target))
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user