Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (18 sloc) 338 Bytes
# 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
You can’t perform that action at this time.