Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
21 lines (18 sloc) 0.338 kB
# 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
Jump to Line
Something went wrong with that request. Please try again.