Skip to content

Instantly share code, notes, and snippets.

@jjoocceeee
Created September 7, 2019 20:09
Show Gist options
  • Select an option

  • Save jjoocceeee/3fd4322dece989ad4e61aae05c1f4443 to your computer and use it in GitHub Desktop.

Select an option

Save jjoocceeee/3fd4322dece989ad4e61aae05c1f4443 to your computer and use it in GitHub Desktop.
Todays Holiday Intent Handler
const TodaysHolidayIntentHandler = {
canHandle(handlerInput){
return handlerInput.requestEnvelope.request.type === 'IntentRequest' && handlerInput.requestEnvelope.request.intent.name === 'TodaysHolidayIntent';
},
async handle(handlerInput) {
return await getTodayHolidays(handlerInput);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment