Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "choose": function(bot, username, data) {
- if (!data) {
- return
- }
- var choices = data.trim().split(" ")
- var choice = choices[Math.floor(Math.random() * choices.length)]
- bot.sendChatMsg("[Choose: " + choices.join(" ") + "] " + choice)
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement