mirror of
https://github.com/r-ca/kidshift-skills.git
synced 2024-10-26 01:24:03 +00:00
仮ハンドラ作成
This commit is contained in:
parent
9c00020d28
commit
911673d781
14
src/index.ts
14
src/index.ts
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue
Block a user