FIxed typo
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
69441c4794
commit
374b72328a
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user