Limit reply length so bot doesn't get kicked
This commit is contained in:
parent
ce9613c00c
commit
8b85de2b2a
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user