mirror of
https://github.com/r-ca/kidshift-skills.git
synced 2024-10-25 17:14:03 +00:00
test
This commit is contained in:
parent
721ff5ba29
commit
0d97c04337
29
src/index.ts
29
src/index.ts
|
@ -44,24 +44,23 @@ const HelloWorldIntentHandler = {
|
|||
|
||||
const KidShiftAuthIntentHandler = {
|
||||
canHandle(handlerInput: Alexa.HandlerInput) {
|
||||
return (Alexa.getRequestType(handlerInput.requestEnvelope) === 'IntentRequest')
|
||||
|| (Alexa.getRequestType(handlerInput.requestEnvelope) === 'KidShiftAuthIntent');
|
||||
return (Alexa.getRequestType(handlerInput.requestEnvelope) === 'IntentRequest') && (Alexa.getRequestType(handlerInput.requestEnvelope) === 'KidShiftAuthIntent');
|
||||
},
|
||||
handle(handlerInput: Alexa.HandlerInput) {
|
||||
|
||||
// dialogStateを取得
|
||||
const dialogState = Alexa.getDialogState(handlerInput.requestEnvelope);
|
||||
|
||||
// dialogStateがCOMPLETEDでない場合は、処理を続行
|
||||
|
||||
console.log("Dialog state is " + dialogState);
|
||||
|
||||
if (dialogState !== 'COMPLETED') {
|
||||
return handlerInput.responseBuilder
|
||||
.addDelegateDirective()
|
||||
.getResponse();
|
||||
}
|
||||
|
||||
// // dialogStateを取得
|
||||
// const dialogState = Alexa.getDialogState(handlerInput.requestEnvelope);
|
||||
//
|
||||
// // dialogStateがCOMPLETEDでない場合は、処理を続行
|
||||
//
|
||||
// console.log("Dialog state is " + dialogState);
|
||||
//
|
||||
// if (dialogState !== 'COMPLETED') {
|
||||
// return handlerInput.responseBuilder
|
||||
// .addDelegateDirective()
|
||||
// .getResponse();
|
||||
// }
|
||||
//
|
||||
// LOGIN_CODEスロットの値を取得
|
||||
const loginCode = Alexa.getSlotValue(handlerInput.requestEnvelope, 'loginCode');
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user