added command to reload scripts
This commit is contained in:
parent
c2edf28e6a
commit
5b99d2defa
3 changed files with 7 additions and 0 deletions
|
@ -36,6 +36,11 @@ class RunScriptSkill(MycroftSkill):
|
|||
else:
|
||||
self.speak_dialog('NotFound', {'script': script})
|
||||
|
||||
@intent_handler('ReloadScripts.intent')
|
||||
def handel_reload_scripts_intent(self, msg=None):
|
||||
self.read_scripts_dir()
|
||||
self.speak_dialog('Reloaded')
|
||||
|
||||
def stop(self):
|
||||
pass
|
||||
|
||||
|
|
1
dialog/en-us/Reloaded.dialog
Normal file
1
dialog/en-us/Reloaded.dialog
Normal file
|
@ -0,0 +1 @@
|
|||
Scripts reloaded.
|
1
vocab/en-us/ReloadScripts.intent
Normal file
1
vocab/en-us/ReloadScripts.intent
Normal file
|
@ -0,0 +1 @@
|
|||
reload scripts
|
Loading…
Reference in a new issue