added command to reload scripts

This commit is contained in:
Rudis Muiznieks 2022-04-01 16:35:03 -05:00
parent c2edf28e6a
commit 5b99d2defa
Signed by: rudism
GPG Key ID: CABF2F86EF7884F9
3 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1 @@
Scripts reloaded.

View File

@ -0,0 +1 @@
reload scripts