Skip to content

Instantly share code, notes, and snippets.

@sirbrad
Created May 9, 2013 17:28
Show Gist options
  • Save sirbrad/5549064 to your computer and use it in GitHub Desktop.
Save sirbrad/5549064 to your computer and use it in GitHub Desktop.
# Description:
# Decide who's making the next round of tea
#
# Commands:
# hubot brew roulette
#
taunts = [
", you are the chosen one my friend.",
", it's time to make a brew!",
", stop what you're doing right now! Your team need a brew!",
", do you want the team to die of thirst? Choppidy Chop!"
]
module.exports = (robot) ->
robot.respond /brew roulette/i, (msg) ->
taunt = msg.random taunts
for i, user of robot.brain.data.users
msg.send user.name + taunt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment