Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JonathanZWhite/4fa47de5732840224e8e2abd05ceaaed to your computer and use it in GitHub Desktop.
Save JonathanZWhite/4fa47de5732840224e8e2abd05ceaaed to your computer and use it in GitHub Desktop.
randomMessage.js
var fallbackMessages = [
'Sorry, not sure what you just said.',
'Uh oh! Try again.',
'Hm... Sorry I\'m not that smart yet. Try again!'
];
var message = messages[Math.floor(Math.random() * messages.length)];
bot.say(message);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment