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 3202bf5f0b - Show all commits

View File

@@ -39,7 +39,9 @@ module.exports = {
listOfPossibleQuestions +=
intent.intentExplanation +
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['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 = {
LaunchRequest: function () {
this.response
.speak (
activeSkill.invocationAnswer +
'<break time="'+constants.voiceResponseTimings.PAUSE_AFTER_WELCOME_MESSAGE+'ms"/>' +
'<break time="' +
constants.voiceResponseTimings.PAUSE_AFTER_WELCOME_MESSAGE +
'ms"/>' +
listOfPossibleQuestions
)
.listen (constants.voiceResponseStrings.GENERIC_CONTINUE); //Phrase from listen doesn't work !!!