Permalink
Browse files

fact updates

Signed-off-by: Justin <jusjef@amazon.com>
  • Loading branch information...
Justin
Justin committed Aug 25, 2017
1 parent f27c523 commit 725be6ab01b86486c68e03d92824707774c4a081
Showing with 11 additions and 7 deletions.
  1. +11 −7 labs/FactService/src/index.js
@@ -1,4 +1,4 @@
var Alexa = require('alexa-sdk');
const Alexa = require('alexa-sdk');
exports.handler = function(event, context, callback) {
var alexa = Alexa.handler(event, context);
@@ -16,19 +16,23 @@ var handlers = {
'GetNewFactIntent': function () {
var say = 'Here is your fact. ' + getFact();
this.emit(':tell', say );
this.response.speak(say);
this.emit(':responseReady');
},
// 'AMAZON.HelpIntent': function () {
// this.emit(':ask', 'you can ask for a fact by saying, tell me a fact.', 'try again');
// this.response.speak('you can ask for a fact by saying, tell me a fact.');
// this.response.listen('try again');
// },
//
// 'AMAZON.CancelIntent': function () {
// this.emit(':tell', 'Goodbye');
// this.response.speak('Goodbye')
// this.emit(':responseReady');
// },
//
// 'AMAZON.StopIntent': function () {
// this.emit(':tell', 'Goodbye');
// this.response.speak('Goodbye');
// this.emit(':responseReady');
// }
};

0 comments on commit 725be6a

Please sign in to comment.