From 6f4353c09acc024ed266a562efc9c6a38ec95e92 Mon Sep 17 00:00:00 2001 From: Daniel Dayley Date: Tue, 10 Sep 2024 14:38:39 -0600 Subject: [PATCH] I'm just developing this in prod --- persona/skills/simplereply.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/persona/skills/simplereply.py b/persona/skills/simplereply.py index e389404..c2a8417 100644 --- a/persona/skills/simplereply.py +++ b/persona/skills/simplereply.py @@ -30,7 +30,7 @@ class PersonaSkill(PersonaBaseSkill) : self.log.warn('Responding too fast, not responding again.') return False for trigger in SIMPLE_REPLIES.keys() : - matches = re.search(SIMPLE_REPLIES[trigger], message.text) + matches = re.search(trigger, message.text) if matches : return True return False @@ -40,7 +40,7 @@ class PersonaSkill(PersonaBaseSkill) : """Respond to a message by generating another message.""" try : for trigger in SIMPLE_REPLIES.keys() : - matches = re.search(SIMPLE_REPLIES[trigger], message.text) + matches = re.search(trigger, message.text) if matches : response_options = SIMPLE_REPLIES[trigger] break