mirror of
https://github.com/r-ca/kidshift-skills.git
synced 2024-10-25 17:14:03 +00:00
コメントアウト, 追加
This commit is contained in:
parent
9bfa72cfc2
commit
1f2c13c4e2
29
src/index.ts
29
src/index.ts
|
@ -42,19 +42,19 @@ 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 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) {
|
||||
|
@ -148,7 +148,8 @@ exports.handler = Alexa.SkillBuilders.custom()
|
|||
CancelAndStopIntentHandler,
|
||||
FallbackIntentHandler,
|
||||
SessionEndedRequestHandler,
|
||||
IntentReflectorHandler)
|
||||
IntentReflectorHandler,
|
||||
KidShiftAuthIntentHandler)
|
||||
.addErrorHandlers(
|
||||
ErrorHandler)
|
||||
.withPersistenceAdapter(new DynamoDBPersistantAttributesAdapter.DynamoDbPersistenceAdapter({
|
||||
|
|
Loading…
Reference in New Issue
Block a user