Created
July 28, 2017 09:06
-
-
Save jazzedge/800936d1de7dd15b571df819bddfff5d to your computer and use it in GitHub Desktop.
Bot - Override Dialog behaviours
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // See: http://www.pveller.com/smarter-conversations-part-2-open-dialogs/#Trigger-Actions | |
| // You can define your own dialog’s behaviors by overwriting begin, replyReceived, and even recognize on your dialogs: | |
| bot.dialog('custom', Object.assign(new builder.Dialog(), { | |
| begin: (session) => { | |
| session.send('I am built custom'); | |
| }, | |
| replyReceived: (session) => { | |
| session.endDialog(); | |
| } | |
| })); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment