Skip to content

Commit

Permalink
More message context troubleshooting
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Jan 2, 2024
1 parent 76367c2 commit c09608c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ovos_core/intent_services/commonqa_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,11 @@ def _query_timeout(self, message: Message):
# TODO: Ask user to pick between ties or do it automagically
pass

# invoke best match
self.speak(best['answer'], message.reply("", best))
# invoke best match. `message` here already has source=skills ctx
self.speak(best['answer'], message.forward("", best))
LOG.info('Handling with: ' + str(best['skill_id']))
cb = best.get('callback_data') or {}
self.bus.emit(message.reply('question:action',
self.bus.emit(message.forward('question:action',
data={'skill_id': best['skill_id'],
'phrase': search_phrase,
'callback_data': cb}))
Expand Down

0 comments on commit c09608c

Please sign in to comment.