Created
April 22, 2016 20:57
-
-
Save devStepsize/af5d96a856e62f0f148a775be1e5e243 to your computer and use it in GitHub Desktop.
Botkit functions to control the flow of the conversation
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
// 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