Fix typo.

master
float-trip 2023-07-10 01:09:49 +00:00
parent 71b3ab2bf6
commit e549796935
1 changed files with 2 additions and 1 deletions

3
bot.py
View File

@ -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)