Skip to content

Commit

Permalink
Merge pull request alexa-samples#32 from MikeGJennings/patch-1
Browse files Browse the repository at this point in the history
Fixed alexa.appId property
  • Loading branch information
akersh-s committed Sep 27, 2017
2 parents 760d255 + ea32823 commit dcf5a0f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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();
};

0 comments on commit dcf5a0f

Please sign in to comment.