Skip to content

Instantly share code, notes, and snippets.

@memodoring
Created May 9, 2018 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save memodoring/57b825103d10fea1ce262053573fd27d to your computer and use it in GitHub Desktop.
Save memodoring/57b825103d10fea1ce262053573fd27d to your computer and use it in GitHub Desktop.
A sample canHandle for the Alexa SDK V2
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