fix code
This commit is contained in:
@@ -45,18 +45,7 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
//Defaul Amazon handlers (some of them)
|
//Handler for launch requestconsole.log()
|
||||||
|
|
||||||
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
|
|
||||||
handlers = {
|
handlers = {
|
||||||
LaunchRequest: function () {
|
LaunchRequest: function () {
|
||||||
this.response
|
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
|
//Default handlers for unknown questions and session close
|
||||||
|
|
||||||
handlers.Unhandled = function () {
|
handlers.Unhandled = function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user