仮ハンドラ作成

This commit is contained in:
ろむねこ 2024-07-16 09:39:12 +09:00
parent 9c00020d28
commit 911673d781
Signed by: Fujimatsu
GPG Key ID: FA1F39A1BA37D168

View File

@ -28,6 +28,20 @@ const HelloWorldIntentHandler = {
}
};
const KidShiftAuthIntentHandler = {
canHandle(handlerInput: Alexa.HandlerInput) {
return Alexa.getRequestType(handlerInput.requestEnvelope) === 'KidShiftAuthIntentHandler';
},
handle(handlerInput: Alexa.HandlerInput) {
// TODO: impl
const speakOutput = 'AuthHandler placeholder message';
return handlerInput.responseBuilder
.speak(speakOutput)
.getResponse();
}
};
const HelpIntentHandler = {
canHandle(handlerInput: Alexa.HandlerInput) {
return Alexa.getRequestType(handlerInput.requestEnvelope) === 'IntentRequest'