Experiment with Yes and No intent

This commit is contained in:
GotPPay
2018-01-23 00:40:19 +01:00
parent b1a853c363
commit 2ae983d211
2 changed files with 14 additions and 13 deletions

View File

@@ -50,7 +50,7 @@ module.exports = {
this.attributes['WaitingQuestions'] = false;
};
handlers['AMAZON.YesIntent'] = function () {
handlers['YesIntent'] = function () {
console.log("yes intent");
if (this.attributes['WaitingQuestions']) {
this.response
@@ -60,7 +60,7 @@ module.exports = {
}
};
handlers['AMAZON.NoIntent'] = function () {
handlers['NoIntent'] = function () {
console.log("No intent");
if (this.attributes['WaitingQuestions']) {
this.attributes['WaitingQuestions'] = false;
@@ -71,7 +71,7 @@ module.exports = {
handlers = {
LaunchRequest: function () {
this.response
.speak (activeSkill.invocationAnswer + '<break time="1s"/> Would you like to hear possible questions ?')
.speak (activeSkill.invocationAnswer + '<break time="650ms"/> Would you like to hear possible questions ?')
.listen (constants.voiceResponseStrings.GENERIC_CONTINUE); //Phrase from listen doesn't work !!!
this.attributes['WantToHearQuestions'] = true;