Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 21 lines (18 sloc) 0.338 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
# 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
Something went wrong with that request. Please try again.