Skip to content

Instantly share code, notes, and snippets.

@captDaylight
Last active May 15, 2016 22:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save captDaylight/b9d581c45ea6c3ea9a3ebf488bd1822a to your computer and use it in GitHub Desktop.
Save captDaylight/b9d581c45ea6c3ea9a3ebf488bd1822a to your computer and use it in GitHub Desktop.
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