From 1464b23d8c9de9086d3a85293d07e540af2a1155 Mon Sep 17 00:00:00 2001 From: Daniel Dayley Date: Mon, 15 May 2023 16:55:57 -0600 Subject: [PATCH] Fixed typo --- persona/skills/chatgpt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/persona/skills/chatgpt.py b/persona/skills/chatgpt.py index ea78b9b..458d49b 100644 --- a/persona/skills/chatgpt.py +++ b/persona/skills/chatgpt.py @@ -82,7 +82,7 @@ class PersonaSkill(PersonaBaseSkill) : self.enabled_chats.remove(message.chat_identifier) return False if message.meta['isFromMe'] : - if self.respond_to_self and (self.respond_to_self in [sender] + message.recipients) : + if self.respond_to_self and (self.respond_to_self in list(set([sender] + message.recipients))) : return True else : return False