Skip to content

Instantly share code, notes, and snippets.

@jazzedge
Created July 28, 2017 06:01
Show Gist options
  • Select an option

  • Save jazzedge/f90e176b6265c69032d60d063927e673 to your computer and use it in GitHub Desktop.

Select an option

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
// 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