Hi All,
Hardware:
Macbook pro -> Ubuntu 16.04.2 VM
I am currently trying to make a sample skill based off the new intent handler decorators. I have written a init.py file that can be seen at the bottom of the post (its short I swear!). This is located in /opt/mycroft/skills/skill-test. In the skill-test folder i have also included a vocab file in the location /opt/mycroft/skills/skill-test/vocab/en-us/TestNew.voc. In this file i have one utterance “this is a test”. When i run the following (./start.sh services, ./start.sh skills, ./start.sh voice, ./start.sh cli), I enter “this is a test” into the cli, and my intent associated with the utterance can not be found.
I believe the intent is not being registered.
Per documentation I think i am implementing my skill correctly, but obviously i am not.
Any suggestions here on what i may be doing wrong and how I can get this intent to register using intent decoders?
Thanks!
Heres the Code:
from mycroft.skills.core import MycroftSkill
from mycroft.skills.core import intent_handler, intent_file_handler
from adapt.intent import IntentBuilder
class NewTestSkill(MycroftSkill):
def __init__ (self):
super(NewTestSkill, self).__init__(name="NewTestSkill")
@intent_handler(IntentBuilder('a').require('TestNew').build())
def new_handler(self, message):
self.speak("yo yo yo")
def stop(self):
pass
def create_skill():
return NewTestSkill