Quelques bugfix encowe

This commit is contained in:
hadware
2018-05-30 04:20:30 +02:00
parent ee829e6dbe
commit 31698065e6
+1 -1
View File
@@ -53,7 +53,7 @@ class CocoClient:
def _format_history(self, interlocutor: Interlocutor):
if interlocutor in self.histories:
return [BotMessage("💬 %s: %s" % (nick, msg))
for nick, msg in self.histories[interlocutor][:5]]
for nick, msg in self.histories[interlocutor][-5:]]
else:
return []