From 8463dd8c7661669317a4b19cbf190e47bbb773a0 Mon Sep 17 00:00:00 2001 From: miro Date: Thu, 19 Dec 2024 00:24:54 +0000 Subject: [PATCH] fix:dont_allow_load_game until we allow requesting load_game_name dont allow load_game intent unless game is already playing --- ocp_pipeline/opm.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ocp_pipeline/opm.py b/ocp_pipeline/opm.py index ebe89e0..3f31547 100644 --- a/ocp_pipeline/opm.py +++ b/ocp_pipeline/opm.py @@ -362,7 +362,9 @@ def match_high(self, utterances: List[str], lang: str, message: Message = None) return None else: # if no game is being played, disable game specific intents - game_only = ["save_game"] + game_only = ["save_game", "load_game"] + # TODO - allow load_game without being in game already + # this can only be done if we match skill_id if match["name"] in game_only: LOG.info(f'Ignoring OCP intent match {match["name"]}, not playing MediaType.GAME') return None