From 1d0ca0e92e3753a7bc792362854f2be7e8c1253a Mon Sep 17 00:00:00 2001 From: Zachary Cowan <44091329+zacowan@users.noreply.github.com> Date: Mon, 6 Dec 2021 12:19:24 -0500 Subject: [PATCH] fallback --- andy_api/api/intent_processing/intent_processing.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/andy_api/api/intent_processing/intent_processing.py b/andy_api/api/intent_processing/intent_processing.py index 1012082..5232683 100644 --- a/andy_api/api/intent_processing/intent_processing.py +++ b/andy_api/api/intent_processing/intent_processing.py @@ -118,6 +118,9 @@ def fulfill_intent(session_id, board_str, intent_data): elif response_type == RESPONSE_TYPES.SELECT_DIFFICULTY: response_choice, success, updated_board_str = select_difficulty.handle( session_id, intent_data) + else: + response_type = RESPONSE_TYPES.FALLBACK + success = False # Intents to handle after a game has started and the user has chosen a side elif not game_state["game_finished"]: @@ -150,6 +153,9 @@ def fulfill_intent(session_id, board_str, intent_data): response_choice, success = quit_game.handle_yes(session_id) elif response_type == RESPONSE_TYPES.QUIT_GAME_NO: response_choice, success = quit_game.handle_no() + else: + response_type = RESPONSE_TYPES.FALLBACK + success = False # Intents to handle after a game has finished else: