This commit is contained in:
ろむねこ 2024-07-16 14:14:10 +09:00
parent 40b29dba51
commit 9c56e5a4b6
Signed by: Fujimatsu
GPG Key ID: FA1F39A1BA37D168

View File

@ -32,12 +32,12 @@ const HelloWorldIntentHandler = {
const KidShiftAuthIntentHandler = {
canHandle(handlerInput: Alexa.HandlerInput) {
return Alexa.getRequestType(handlerInput.requestEnvelope) === 'IntentRequest'
return Alexa.getRequestType(handlerInput.requestEnvelope) === 'IntentRequest'
&& Alexa.getIntentName(handlerInput.requestEnvelope) === 'KidShiftAuthIntent';
},
handle(handlerInput: Alexa.HandlerInput) {
return handlerInput.responseBuilder
.speak('引数なし呼び出し')
.speak('DEBUG: your auth code is ' + Alexa.getSlotValue(handlerInput.requestEnvelope, 'loginCode'))
.getResponse();
}
};