I'm just developing this in prod
All checks were successful
git.cronocide.net/bluebubbles-bot/pipeline/head This commit looks good
All checks were successful
git.cronocide.net/bluebubbles-bot/pipeline/head This commit looks good
This commit is contained in:
parent
593e4ea6f3
commit
6f4353c09a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user