Quelques bugfix encowe
This commit is contained in:
@@ -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 []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user