Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Mar 19, 2024
1 parent 52af7b1 commit bb045af
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ovos_workshop/skills/ovos.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,16 +258,15 @@ def register_converse_intent(self, intent_file, handler):

self.add_event(name, handler, 'mycroft.skill.handler')

def _handle_converse_intents(self, message=None):
def _handle_converse_intents(self, message):
""" called before converse method
this gives active skills a chance to parse their own intents and
consume the utterance, see conversational_intent decorator for usage
"""
message = message or dig_for_message()
best_score = 0
if self.lang not in self.converse_matchers:
return False

best_score = 0
response = None

for utt in message.data['utterances']:
Expand Down

0 comments on commit bb045af

Please sign in to comment.