Skip to content

Instantly share code, notes, and snippets.

@adamjuhasz
Last active April 3, 2017 21:38
Show Gist options
  • Save adamjuhasz/28d60705edc2b36abe93f33e8db11d57 to your computer and use it in GitHub Desktop.
Save adamjuhasz/28d60705edc2b36abe93f33e8db11d57 to your computer and use it in GitHub Desktop.
.dialog((session, response, stop) => {
response.sendText(getRandom([
"I'm confused",
"I don't know what you mean",
"Can you try again",
"I'm just a baby bot",
]));
})
function getRandom(arr) {
return arr[Math.floor(Math.random()*arr.length)];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment