mirror of
https://github.com/r-ca/kidshift-skills.git
synced 2024-10-25 17:14:03 +00:00
updated lambda/index.js.
This commit is contained in:
parent
82ae0bc31b
commit
8b57718ef3
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user