20 lines
494 B
Python
20 lines
494 B
Python
from mycroft import MycroftSkill, intent_handler
|
|
|
|
class RunScriptSkill(MycroftSkill):
|
|
def __init__(self):
|
|
super().__init__()
|
|
|
|
def initialize(self):
|
|
script_dir = self.settings.get('script_dir')
|
|
|
|
@intent_handler('RunScript.intent')
|
|
def handle_run_script_intent(self, msg=None):
|
|
script = msg.data.get('script', None)
|
|
self.speak_dialog('Running', {'script': script})
|
|
|
|
def stop(self):
|
|
pass
|
|
|
|
def create_skill():
|
|
return RunScriptSkill()
|