Last active
April 3, 2017 21:38
-
-
Save adamjuhasz/28d60705edc2b36abe93f33e8db11d57 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
.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