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