From 8b57718ef3dfd89e688b20f19d4a3c35dab5fc7b Mon Sep 17 00:00:00 2001 From: AlexaHostedSkills Date: Tue, 16 Jul 2024 05:43:30 +0000 Subject: [PATCH] updated lambda/index.js. --- lambda/index.js | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/lambda/index.js b/lambda/index.js index 81a9b66..3c5ed21 100644 --- a/lambda/index.js +++ b/lambda/index.js @@ -56,14 +56,17 @@ const KidShiftAuthIntentHandler = { && Alexa.getIntentName(handlerInput.requestEnvelope) === 'KidShiftAuthIntent'; }, handle(handlerInput) { - if (Alexa.getSlot(handlerInput.requestEnvelope, 'loginCode').value === undefined) { - return handlerInput.responseBuilder - .speak('Please provide a valid login code') - .reprompt('Please provide a valid login code') - .getResponse(); - } + // if (Alexa.getSlot(handlerInput.requestEnvelope, 'loginCode').value === undefined) { + // return handlerInput.responseBuilder + // .speak('Please provide a valid login code') + // .reprompt('Please provide a valid login code') + // .getResponse(); + // } + // return handlerInput.responseBuilder + // .speak('your auth code is ' + Alexa.getSlotValue(handlerInput.requestEnvelope, 'loginCode')) + // .getResponse(); return handlerInput.responseBuilder - .speak('your auth code is ' + Alexa.getSlotValue(handlerInput.requestEnvelope, 'loginCode')) + .speak('hoge') .getResponse(); } };