Skip to content

Commit

Permalink
refactor: simplify cq messages
Browse files Browse the repository at this point in the history
avoid skills needing to check their skill_id, trigger the intended skill directly instead
  • Loading branch information
JarbasAl committed Jan 4, 2025
1 parent 6787bc9 commit 4dafdc4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ovos_workshop/skills/ovos.py
Original file line number Diff line number Diff line change
Expand Up @@ -1053,6 +1053,9 @@ def __handle_query_action(self, message: Message):
if not self._cq_callback or message.data["skill_id"] != self.skill_id:
# Not for this skill!
return
# call the correct handler as if cq was updated
message.msg_type += f".{self.skill_id}"
self.bus.emit(message)

def __handle_skill_query_action(self, message: Message):
LOG.debug(f"common query callback for: {self.skill_id}")
Expand Down

0 comments on commit 4dafdc4

Please sign in to comment.