Skip to content

Instantly share code, notes, and snippets.

@andrewkim316
Created September 9, 2019 21:16
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 andrewkim316/7fb20e76073772ce17fad8975c385b7d to your computer and use it in GitHub Desktop.
Save andrewkim316/7fb20e76073772ce17fad8975c385b7d to your computer and use it in GitHub Desktop.
const MarketOrderInProgressIntentHandler = {
canHandle(handlerInput) {
return Alexa.getRequestType(handlerInput.requestEnvelope) === 'IntentRequest'
&& Alexa.getIntentName(handlerInput.requestEnvelope) === 'MarketOrderIntent'
&& Alexa.getDialogState(handlerInput.requestEnvelope) !== 'COMPLETED';
},
handle(handlerInput) {
return handlerInput.responseBuilder
.addDelegateDirective()
.getResponse();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment