Question explanation #12

Merged
senaduka merged 20 commits from question-explanation into send-message-feature 2018-01-23 12:19:14 +01:00
Showing only changes of commit 6b26db3d18 - Show all commits

View File

@@ -45,18 +45,7 @@ module.exports = {
}
});
//Defaul Amazon handlers (some of them)
handlers.NewSession = function () {};
handlers['AMAZON.HelpIntent'] = function () {
console.log ('Help intent');
this.response
.speak (listOfPossibleQuestions)
.listen (constants.voiceResponseStrings.GENERIC_CONTINUE); //Phrase from listen doesn't work !!!
};
//Handler for launch request
//Handler for launch requestconsole.log()
handlers = {
LaunchRequest: function () {
this.response
@@ -170,6 +159,19 @@ module.exports = {
}
};
//Defaul Amazon handlers (some of them)
handlers.NewSession = function () {
console.log(this.event.request);
};
handlers['AMAZON.HelpIntent'] = function () {
console.log ('Help intent');
this.response
.speak (listOfPossibleQuestions)
.listen (constants.voiceResponseStrings.GENERIC_CONTINUE); //Phrase from listen doesn't work !!!
};
//Default handlers for unknown questions and session close
handlers.Unhandled = function () {