Created
May 9, 2018 16:43
-
-
Save memodoring/57b825103d10fea1ce262053573fd27d to your computer and use it in GitHub Desktop.
A sample canHandle for the Alexa SDK V2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
canHandle(handlerInput) { | |
const request = handlerInput.requestEnvelope.request; | |
return request.type === 'LaunchRequest' | |
|| | |
(request.type === 'IntentRequest' && request.intent.name === 'GetNewFactIntent'); | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment