From bb045af8ce4780420b3a273716081719cae178fe Mon Sep 17 00:00:00 2001 From: miro Date: Tue, 19 Mar 2024 16:38:50 +0000 Subject: [PATCH] simplify --- ovos_workshop/skills/ovos.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ovos_workshop/skills/ovos.py b/ovos_workshop/skills/ovos.py index a52cebd0..555b05bc 100644 --- a/ovos_workshop/skills/ovos.py +++ b/ovos_workshop/skills/ovos.py @@ -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']: