Skip to content

Commit

Permalink
fix:dont_allow_load_game (#48)
Browse files Browse the repository at this point in the history
until we allow requesting load_game_name dont allow load_game intent unless game is already playing
  • Loading branch information
JarbasAl authored Dec 19, 2024
1 parent e61689d commit 23de181
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ocp_pipeline/opm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 23de181

Please sign in to comment.