Add more info on captured response (skill and dialog)

pull/2506/head
Åke Forslund 2020-03-04 13:47:54 +01:00
parent d7cab332fe
commit d451e1c1e0
1 changed files with 5 additions and 1 deletions

View File

@ -144,7 +144,11 @@ def mycroft_responses(context):
if len(messages) > 0:
responses = 'Mycroft responded with:\n'
for m in messages:
responses += 'Mycroft: "{}"\n'.format(m.data['utterance'])
responses += 'Mycroft: '
if 'dialog' in m.data['meta']:
responses += '{}.dialog'.format(m.data['meta']['dialog'])
responses += '({})\n'.format(m.data['meta'].get('skill'))
responses += '"{}"\n'.format(m.data['utterance'])
return responses