updated lambda/index.js.

This commit is contained in:
AlexaHostedSkills 2024-07-16 05:43:30 +00:00
parent 82ae0bc31b
commit 8b57718ef3

View File

@ -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();
}
};