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) :
|
if datetime.datetime.now().timestamp() < (self.last_check + BACKOFF_SEC) :
|
||||||
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_RELIES.keys() :
|
for trigger in SIMPLE_REPLIES.keys() :
|
||||||
matches = re.search(SIMPLE_RELIES[trigger], message.text)
|
matches = re.search(SIMPLE_REPLIES[trigger], message.text)
|
||||||
if matches :
|
if matches :
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
@ -39,7 +39,7 @@ class PersonaSkill(PersonaBaseSkill) :
|
|||||||
def respond(self, message: Message) -> Message :
|
def respond(self, message: Message) -> Message :
|
||||||
"""Respond to a message by generating another message."""
|
"""Respond to a message by generating another message."""
|
||||||
try :
|
try :
|
||||||
for trigger in SIMPLE_RELIES.keys() :
|
for trigger in SIMPLE_REPLIES.keys() :
|
||||||
matches = re.search(SIMPLE_REPLIES[trigger], message.text)
|
matches = re.search(SIMPLE_REPLIES[trigger], message.text)
|
||||||
if matches :
|
if matches :
|
||||||
response_options = SIMPLE_REPLIES[trigger]
|
response_options = SIMPLE_REPLIES[trigger]
|
||||||
|
Loading…
Reference in New Issue
Block a user