Skip to content

Commit

Permalink
Store work location WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
daemonsy committed Jul 3, 2017
1 parent 839b15f commit 74b3f14
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,17 @@ var handlers = {
storeFavoriteLine: storeFavoriteLineHandler,
checkFavoriteLines: checkFavoriteLinesHandler,
checkFavoriteLinesStatus: checkFavoriteLinesStatusHandler,

storeWorkLocation() {
console.log("In store work location handler");
console.log(this.event.request.dialogState);
if(this.event.request.dialogState !== 'COMPLETED') {
this.emit(':delegate');
} else {
console.log(this.event);
}
},

Unhandled: fullStatusUpdateHandler,
};

Expand Down Expand Up @@ -108,9 +119,7 @@ exports.flashBriefingHandler = (event, context, callback) => {
};

exports.handler = function(event, context, callback){
if(logRequests) {
console.log(event.request); // Log to Cloudwatch
}
console.log(event);

var alexa = Alexa.handler(event, context);
alexa.appId = applicationId;
Expand Down

0 comments on commit 74b3f14

Please sign in to comment.