Fix typo.
parent
71b3ab2bf6
commit
e549796935
3
bot.py
3
bot.py
|
@ -91,7 +91,8 @@ class Bot:
|
|||
candidates.append(reply)
|
||||
print("Accepting reply.")
|
||||
|
||||
reply = max(candidates, key=lambda r: min(utils.reply_length(r, 500)))
|
||||
# Get the longest reply, but cap the considered length at 500 chars.
|
||||
reply = max(candidates, key=lambda r: min(utils.reply_length(r), 500))
|
||||
self.client.reply(reply, comment)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue