Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
# Fire off a random insult
module.exports = (robot) ->
robot.respond /you('re|\s).*/i, (msg) ->
msg.send(random_insult())
robot.respond /(fuck|suck|dick|bitch|asshole)/i, (msg) ->
msg.send(random_insult())
random_insult = ->
random = Math.floor(Math.random() * 6)
switch random
when 0
message = "Fuck off I'm drinking."
when 1
message = "That's what your mother said last night"
when 2
message = "I'm sorry.... wait a minute. No I'm not. Go fuck yourself! I'M MOTHER FUCKING SOCKO!!"
when 3
message = "Piss off."
when 4
message = "Are you done being a little bitch?"
when 5
message = "Are you still here?"
return message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.