Allow dialog param of get_response() to be a spoken string
This makes the dialog parameter dual-purpose.  It can be used as a
literal spoken string, or a dialog resource.  In the future the
announcement parameter can be retired.
@@ -359,6 +359,12 @@ class MycroftSkill(object):
data = data or {}
def get_announcement():
+ nonlocal announcement
+ # The dialog param can be either a spoken string or a dialog file
+ # TODO: 18.08 merge dialog/announcement
+ if not exists(join(self.root_dir, 'dialog', self.lang,
+ dialog + '.dialog')) and not announcement:
+ announcement = dialog
return announcement or self.dialog_renderer.render(dialog, data)
if not get_announcement():
