Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict';
- var wikipediaIntent = require('./wikipediaIntent');
- var registerIntentHandlers = function (intentHandlers, skillContext) {
- intentHandlers.GetFirstEventIntent = function (intent, session, response) {
- handleFirstEventRequest(intent, session, response);
- },
- intentHandlers.GetNextEventIntent = function (intent, session, response) {
- handleNextEventRequest(intent, session, response);
- },
- intentHandlers['AMAZON.HelpIntent'] = function (intent, session, response) {
- var speechOutput = "With History Buff, you can get historical events for any day of the year. " +
- "For example, you could say today, or August thirtieth, or you can say exit. Now, which day do you want?";
- var repromptOutput = "Which day do you want?";
- response.ask(speechOutput, repromptOutput);
- },
- intentHandlers['AMAZON.StopIntent'] = function (intent, session, response) {
- var speechOutput = "Goodbye";
- response.tell(speechOutput);
- },
- intentHandlers['AMAZON.CancelIntent'] = function (intent, session, response) {
- var speechOutput = "Goodbye";
- response.tell(speechOutput);
- }
- };
- exports.register = registerIntentHandlers;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement