I'm just developing this in prod
All checks were successful
git.cronocide.net/bluebubbles-bot/pipeline/head This commit looks good

This commit is contained in:
Daniel Dayley 2024-09-10 14:38:39 -06:00
parent 593e4ea6f3
commit 6f4353c09a
Signed by: Cronocide
GPG Key ID: 1CADA052F64664EC

View File

@ -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