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.')
|
self.log.warn('Responding too fast, not responding again.')
|
||||||
return False
|
return False
|
||||||
for trigger in SIMPLE_REPLIES.keys() :
|
for trigger in SIMPLE_REPLIES.keys() :
|
||||||
matches = re.search(SIMPLE_REPLIES[trigger], message.text)
|
matches = re.search(trigger, message.text)
|
||||||
if matches :
|
if matches :
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
@ -40,7 +40,7 @@ class PersonaSkill(PersonaBaseSkill) :
|
|||||||
"""Respond to a message by generating another message."""
|
"""Respond to a message by generating another message."""
|
||||||
try :
|
try :
|
||||||
for trigger in SIMPLE_REPLIES.keys() :
|
for trigger in SIMPLE_REPLIES.keys() :
|
||||||
matches = re.search(SIMPLE_REPLIES[trigger], message.text)
|
matches = re.search(trigger, message.text)
|
||||||
if matches :
|
if matches :
|
||||||
response_options = SIMPLE_REPLIES[trigger]
|
response_options = SIMPLE_REPLIES[trigger]
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user