chrison999 / mycroft-skill-helpme Goto Github PK
View Code? Open in Web Editor NEWA MycroftAI skill that enables an internal help facility
License: GNU General Public License v3.0
A MycroftAI skill that enables an internal help facility
License: GNU General Public License v3.0
User: "Help me"
Mycroft: "Say skill if you want help with a skill or commands if you want help with a command" (then waits)
User: "skills"
Mycroft: "Which skill do you want help with?" (then waits)
User: "Weather"
Mycroft: "The commands for the weather skills are..."
something like:
def help_intent(self, message):
self.speak("Say skill if you want help with a skill or commands if you want help with a command")
self.expecting_answer = True
self.counter = 0
self.choice = None
self.asked = False
def converse(self, transcript):
utterance = transcript[0]
# probably better to call another method inside this so it isnt very crowded
if self.expecting_answer:
if "skill" in utterance:
self.expecting_answer = False
self.choice = "skill"
self.counter = 0
elif "command" in utterance:
self.expecting_answer = False
self.choice = "command"
self.counter = 0
elif counter >= 3 or "stop" in utterance:
self.speak("disabling help")
self.expecting_answer = False
self.choice = None
self.counter = 0
return False
else:
self.speak("try again")
self.counter += 1
self.choice = None
return True
if self.choice is not None:
self.speak("what skill you want help for")
self.asked = True
self.choice = None
self.counter = 0
return True
if asked:
# TODO grab skill from utterance
# TODO check if skill name is a skill or invalid
if self.choice == "skill":
self.speak("skill help")
self.asked = False
self.counter = 0
self.choice = None
return True
elif self.choice == "command":
self.speak("command help")
self.asked = False
self.counter = 0
self.choice = None
return True
elif counter >= 3 or "stop" in utterance:
self.speak("disabling help")
self.asked = False
self.counter = 0
self.choice = None
return False
return False
There are two possible use cases i can think off
reads help for that skill
reads help for last executed skill
so it would be cool to keep track of last executed skill
how:
i make a quick skill for myself, other people may have a use for it, either by changing it to their needs or as is, if it was a not very important skill i wouldnt lose time creating docs, but if we make auto-generation then every skill has basic help because of a 1 time job
reading the vocab files would allow at least commands to be spoken for all skills
How:
so all skills would just need at the top (outside the skill class) the following variables:
everything could then be manually over-rided
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.