mirror of
https://github.com/r-ca/kidshift-skills.git
synced 2024-10-25 17:14:03 +00:00
wip
This commit is contained in:
parent
40b29dba51
commit
9c56e5a4b6
|
@ -32,12 +32,12 @@ const HelloWorldIntentHandler = {
|
|||
|
||||
const KidShiftAuthIntentHandler = {
|
||||
canHandle(handlerInput: Alexa.HandlerInput) {
|
||||
return Alexa.getRequestType(handlerInput.requestEnvelope) === 'IntentRequest'
|
||||
return Alexa.getRequestType(handlerInput.requestEnvelope) === 'IntentRequest'
|
||||
&& Alexa.getIntentName(handlerInput.requestEnvelope) === 'KidShiftAuthIntent';
|
||||
},
|
||||
handle(handlerInput: Alexa.HandlerInput) {
|
||||
return handlerInput.responseBuilder
|
||||
.speak('引数なし呼び出し')
|
||||
.speak('DEBUG: your auth code is ' + Alexa.getSlotValue(handlerInput.requestEnvelope, 'loginCode'))
|
||||
.getResponse();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user