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