From 374b72328a84bff3a4865cb834d3db792ce9443b Mon Sep 17 00:00:00 2001 From: Daniel Dayley Date: Tue, 10 Sep 2024 14:18:40 -0600 Subject: [PATCH] FIxed typo --- persona/skills/simplereply.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/persona/skills/simplereply.py b/persona/skills/simplereply.py index 1d9cd73..e389404 100644 --- a/persona/skills/simplereply.py +++ b/persona/skills/simplereply.py @@ -29,8 +29,8 @@ class PersonaSkill(PersonaBaseSkill) : if datetime.datetime.now().timestamp() < (self.last_check + BACKOFF_SEC) : self.log.warn('Responding too fast, not responding again.') return False - for trigger in SIMPLE_RELIES.keys() : - matches = re.search(SIMPLE_RELIES[trigger], message.text) + for trigger in SIMPLE_REPLIES.keys() : + matches = re.search(SIMPLE_REPLIES[trigger], message.text) if matches : return True return False @@ -39,7 +39,7 @@ class PersonaSkill(PersonaBaseSkill) : def respond(self, message: Message) -> Message : """Respond to a message by generating another message.""" try : - for trigger in SIMPLE_RELIES.keys() : + for trigger in SIMPLE_REPLIES.keys() : matches = re.search(SIMPLE_REPLIES[trigger], message.text) if matches : response_options = SIMPLE_REPLIES[trigger]