I’m starting down the path of learning my first skill via the documentation and at this stage it’s very simplistic:
import logging from mycroft import MycroftSkill, intent_file_handler logger = logging.getLogger(__name__) class MySkill(MycroftSkill): def __init__(self): logger.info("__init__()") MycroftSkill.__init__(self) def converse(self, utterances, lang=None): logger.info("converse") return False @intent_file_handler("myskill.intent") def handle_myskill(self, message): logger.info("intent") self.speak_dialog("myskill") def create_skill(): return MySkill()
The problem I’m having is that the converse() method doesn’t appear to trigger… ever. The skill works just fine: I say “hey mycroft”, he chirps at me, I say the keyword I’m looking for and he responds with one of the responses in the “myskill.dialog” file. But the converse() code never runs. I even tried putting “assert False” in there to see if I could blow everything up, and it still acted the same.
What am I missing here? The documentation tells you what to do, but doesn’t do a very good job of telling you why things aren’t happening as it claims things should.