Last active
May 15, 2016 22:44
-
-
Save captDaylight/b9d581c45ea6c3ea9a3ebf488bd1822a to your computer and use it in GitHub Desktop.
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
| convo.on('end', (convo) => { | |
| if (convo.status === 'completed') { | |
| // conversation completed correctly | |
| const prc = convo.extractResponse('rockPaperScissors'); | |
| } else { | |
| // this happens if the conversation ended prematurely for some reason | |
| bot.reply(message, 'OK, nevermind!'); | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment