Limit reply length so bot doesn't get kicked
This commit is contained in:
		@@ -520,7 +520,11 @@ class Commands:
 | 
				
			|||||||
            pass
 | 
					            pass
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if reply:
 | 
					        if reply:
 | 
				
			||||||
            print(reply)
 | 
					            print('Reply:', reply)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            if len(reply) >= 256:
 | 
				
			||||||
 | 
					                reply = 'reply too long, check console'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if private and not reply.startswith('/'):
 | 
					            if private and not reply.startswith('/'):
 | 
				
			||||||
                self.g.chat.send('/m ' + sender + ' ' + reply)
 | 
					                self.g.chat.send('/m ' + sender + ' ' + reply)
 | 
				
			||||||
            else:
 | 
					            else:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user