public
Created

  • Download Gist
insult.coffee
CoffeeScript
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
# 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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.