initial commit
This commit is contained in:
parent
7325a10438
commit
f38e2b43cc
3 changed files with 27 additions and 0 deletions
20
__init__.py
Normal file
20
__init__.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
from adapt.intent import IntentBuilder
|
||||
from mycroft import MycroftSkill, intent_handler
|
||||
|
||||
class RunScriptSkill(MycroftSkill):
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.learning = true
|
||||
|
||||
def initialize(self):
|
||||
script_dir = self.settings.get('script_dir')
|
||||
|
||||
@intent_handler(IntentBuilder('RunScriptIntent').require('RunScriptKeyword'))
|
||||
def handle_run_script_intent(self, message):
|
||||
self.speak_dialog("running")
|
||||
|
||||
def stop(self):
|
||||
pass
|
||||
|
||||
def create_skill():
|
||||
return RunScriptSkill()
|
1
dialog/en-us/running.dialog
Normal file
1
dialog/en-us/running.dialog
Normal file
|
@ -0,0 +1 @@
|
|||
Okay. I'm running the script.
|
6
vocab/en-us/RunScriptKeyword.voc
Normal file
6
vocab/en-us/RunScriptKeyword.voc
Normal file
|
@ -0,0 +1,6 @@
|
|||
run script
|
||||
run the script
|
||||
run my script
|
||||
execute script
|
||||
execute the script
|
||||
execute my script
|
Loading…
Reference in a new issue