Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add intent fallback system #938
This is the same pull request from 3 weeks ago, but with
from mycroft.skills.core import MycroftSkill class MyFallbackSkilll(MycroftSkill): def __init__(self): MycroftSkill.__init__(self, name="MyFallbackSkill") def initialize(self): self.register_fallback(self.handle_fallback, 80) def handle_fallback(self, message): if 'what is' in message.data['utterance']: self.speak_dialog('the answer is always 42') return True return False
This PR also removes the multi utterance intent fail. It only makes sense to emit an intent_failure regardless of the amount of intents, especially since we only ever receive one utterance anymore.
When testing, check functionality of Wolfram Alpha for questions like what is a fox (and maybe wolfram skill reloading when /opt/mycroft/skill-wolfram-alpha/init.py is edited).
referenced this pull request
Aug 1, 2017
Looks extremely good. Unfortunately wolfram alpha seems to be unavailable to me right now so I haven't been able to test it.
Also PR 145 on mycroft-skills (MycroftAI/mycroft-skills#145) need to be merged before this one.
Would like to verify it with a working wolfram alpha before merging.