This commit is contained in:
ろむねこ 2024-07-16 12:35:26 +09:00
parent 30b9bb2bdd
commit cd6042e938
Signed by: Fujimatsu
GPG Key ID: FA1F39A1BA37D168

View File

@ -44,8 +44,9 @@ const HelloWorldIntentHandler = {
const KidShiftAuthIntentHandler = { const KidShiftAuthIntentHandler = {
canHandle(handlerInput: Alexa.HandlerInput) { canHandle(handlerInput: Alexa.HandlerInput) {
return Alexa.getRequestType(handlerInput.requestEnvelope) === 'IntentRequest' // return Alexa.getRequestType(handlerInput.requestEnvelope) === 'IntentRequest'
&& Alexa.getIntentName(handlerInput.requestEnvelope) === 'KidShiftAuthIntent'; // && Alexa.getIntentName(handlerInput.requestEnvelope) === 'KidShiftAuthIntent';
return Alexa.getIntentName(handlerInput.requestEnvelope) === 'KidShiftAuthIntent';
}, },
handle(handlerInput: Alexa.HandlerInput) { handle(handlerInput: Alexa.HandlerInput) {