Created
September 7, 2019 20:09
-
-
Save jjoocceeee/3fd4322dece989ad4e61aae05c1f4443 to your computer and use it in GitHub Desktop.
Todays Holiday Intent Handler
This file contains hidden or 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
| 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