Skip to content

Instantly share code, notes, and snippets.

@devStepsize
Created April 22, 2016 20:57
Show Gist options
  • Save devStepsize/af5d96a856e62f0f148a775be1e5e243 to your computer and use it in GitHub Desktop.
Save devStepsize/af5d96a856e62f0f148a775be1e5e243 to your computer and use it in GitHub Desktop.
Botkit functions to control the flow of the conversation
// From https://github.com/howdyai/botkit#conversation-control-functions
convo.say(message)
convo.sayFirst(message) // inject a mmessage into the first spot in the queue
convo.stop() // end the convo immediately and set convo.status to stopped
convo.repeat() // repeat the last question and continue to wait for a response
convo.silentRepeat() // simply wait for another response without saying anything
convo.next() // must be called at the end of each handler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment