21 lines
537 B
Python
21 lines
537 B
Python
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()
|