Skip to content

Commit

Permalink
Switch to goToDialog works
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperka committed Oct 22, 2019
1 parent 8c94c5e commit 16abd7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion features/sample_hears.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function initDialog(controller) {
{
pattern: /yes|yeah|ya|yep|y|right|correct/,
handler: async (response, convo, bot) => {
await bot.beginDialog('ONBOARDING_DIALOG_2');
await convo.gotoThread(CONCLUSION);
},
},
{
Expand All @@ -64,6 +64,7 @@ function initDialog(controller) {
);

dialog.addMessage('onboarding.success', CONCLUSION);
dialog.addGotoDialog('ONBOARDING_DIALOG_2', CONCLUSION);

controller.addDialog(dialog);
}
3 changes: 2 additions & 1 deletion features/sample_hears2.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function initDialog(controller) {
{
pattern: /yes|yeah|ya|yep|y|right|correct/,
handler: async (response, convo, bot) => {
await bot.beginDialog('ONBOARDING_DIALOG');
await convo.gotoThread(CONCLUSION);
},
},
{
Expand All @@ -64,6 +64,7 @@ function initDialog(controller) {
);

dialog.addMessage('onboarding2.success', CONCLUSION);
dialog.addGotoDialog('ONBOARDING_DIALOG', CONCLUSION);

controller.addDialog(dialog);
}

0 comments on commit 16abd7a

Please sign in to comment.