Skip to content

Instantly share code, notes, and snippets.

@bcardarella
Created January 30, 2012 18:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bcardarella/1705739 to your computer and use it in GitHub Desktop.
Save bcardarella/1705739 to your computer and use it in GitHub Desktop.
# 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