diff --git a/src/index.js b/src/index.js index 2c2d3cb0..b65423da 100644 --- a/src/index.js +++ b/src/index.js @@ -48,6 +48,13 @@ const data = [ //Editing anything below this line might break your skill. //========================================================================================================================================= +exports.handler = function(event, context, callback) { + var alexa = Alexa.handler(event, context); + alexa.appId = APP_ID; + alexa.registerHandlers(handlers); + alexa.execute(); +}; + const handlers = { 'LaunchRequest': function () { this.emit('GetNewFactIntent'); @@ -78,10 +85,3 @@ const handlers = { this.emit(':responseReady'); }, }; - -exports.handler = function (event, context, callback) { - const alexa = Alexa.handler(event, context, callback); - alexa.APP_ID = APP_ID; - alexa.registerHandlers(handlers); - alexa.execute(); -};