Created
July 28, 2017 06:01
-
-
Save jazzedge/f90e176b6265c69032d60d063927e673 to your computer and use it in GitHub Desktop.
Bot - Restart conversation if a major upgrade of the dialog system has taken place
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
| // Anytime the major version is incremented any existing conversations will be restarted. | |
| bot.use(builder.Middleware.dialogVersion({ version: 1.0, resetCommand: /^reset/i })); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment