diff --git a/src/index.js b/src/index.js index 1a76aa8..0e88624 100644 --- a/src/index.js +++ b/src/index.js @@ -82,6 +82,27 @@ var newSessionHandlers = { this.handler.state = states.SEARCHMODE; this.emit(':ask', skillName + " " + welcomeMessage, welcomeMessage); }, + + 'AMAZON.StopIntent': function () { + this.emit(':tell', killSkillMessage); + }, + + 'AMAZON.CancelIntent': function () { + this.emit(':tell', killSkillMessage); + }, + + 'AMAZON.NoIntent': function () { + this.emit(':tell', shutdownMessage); + }, + + 'SessionEndedRequest': function () { + this.emit('AMAZON.StopIntent'); + }, + + 'Unhandled': function () { + // This occurs if there is no state defined. + this.emit(':ask', HelpMessage, HelpMessage); + } }; // Create a new handler with a SEARCH state