#89 made the list dynamic so it's future proof - when other languages come into play

pull/106/head
Eugene R. Miller 2016-06-06 16:00:36 -06:00
parent a2324352a7
commit 743517c261
1 changed files with 1 additions and 8 deletions

View File

@ -40,14 +40,7 @@ class WelcomeSkill(MycroftSkill):
self.register_intent(welcome_intent, self.handle_welcome_intent)
def handle_welcome_intent(self, message):
dialogs = [
"AnyTime",
"GladToBeOfService",
"GladToHelp",
"MyPleasure",
"NoProblem",
"Welcome",
]
dialogs = self.dialog_renderer.templates.keys()
idx = randint(0, len(dialogs) - 1)
dialog = dialogs[idx]
self.speak_dialog(dialog)