mirror of
https://github.com/r-ca/kidshift-skills.git
synced 2024-10-25 17:14:03 +00:00
test
This commit is contained in:
parent
54dc9c094d
commit
136eb34d15
|
@ -36,14 +36,9 @@ const KidShiftAuthIntentHandler = {
|
|||
&& Alexa.getIntentName(handlerInput.requestEnvelope) === 'KidShiftAuthIntent';
|
||||
},
|
||||
async handle(handlerInput: Alexa.HandlerInput) {
|
||||
if (Alexa.getSlot(handlerInput.requestEnvelope, 'loginCode').value === undefined) {
|
||||
const speakOutput = 'Hello World!2';
|
||||
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'))
|
||||
.speak(speakOutput)
|
||||
.getResponse();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user