hubot-scripts
Version:
Allows you to opt in to a variety of scripts
21 lines (18 loc) • 338 B
text/coffeescript
# Description:
# Help decide between two things
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot throw a coin - Gives you heads or tails
#
# Author:
# mrtazz
thecoin = ["heads", "tails"]
module.exports = (robot) ->
robot.respond /(throw|flip|toss) a coin/i, (msg) ->
msg.reply msg.random thecoin