Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. "choose": function(bot, username, data) {
  2. if (!data) {
  3. return
  4. }
  5.  
  6. var choices = data.trim().split(" ")
  7. var choice = choices[Math.floor(Math.random() * choices.length)]
  8. bot.sendChatMsg("[Choose: " + choices.join(" ") + "] " + choice)
  9. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement