Implement help intent
This commit is contained in:
@@ -39,7 +39,9 @@ module.exports = {
|
|||||||
listOfPossibleQuestions +=
|
listOfPossibleQuestions +=
|
||||||
intent.intentExplanation +
|
intent.intentExplanation +
|
||||||
intent.questions[0] +
|
intent.questions[0] +
|
||||||
'<break time="'+constants.voiceResponseTimings.PAUSE_BETWEEN_QUESTIONS+'ms"/>';
|
'<break time="' +
|
||||||
|
constants.voiceResponseTimings.PAUSE_BETWEEN_QUESTIONS +
|
||||||
|
'ms"/>';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -47,13 +49,22 @@ module.exports = {
|
|||||||
|
|
||||||
handlers.NewSession = function () {};
|
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 request
|
||||||
handlers = {
|
handlers = {
|
||||||
LaunchRequest: function () {
|
LaunchRequest: function () {
|
||||||
this.response
|
this.response
|
||||||
.speak (
|
.speak (
|
||||||
activeSkill.invocationAnswer +
|
activeSkill.invocationAnswer +
|
||||||
'<break time="'+constants.voiceResponseTimings.PAUSE_AFTER_WELCOME_MESSAGE+'ms"/>' +
|
'<break time="' +
|
||||||
|
constants.voiceResponseTimings.PAUSE_AFTER_WELCOME_MESSAGE +
|
||||||
|
'ms"/>' +
|
||||||
listOfPossibleQuestions
|
listOfPossibleQuestions
|
||||||
)
|
)
|
||||||
.listen (constants.voiceResponseStrings.GENERIC_CONTINUE); //Phrase from listen doesn't work !!!
|
.listen (constants.voiceResponseStrings.GENERIC_CONTINUE); //Phrase from listen doesn't work !!!
|
||||||
|
|||||||
Reference in New Issue
Block a user