Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Embed URL


Subversion checkout URL

You can clone with
Download ZIP
# Fire off a random insult
module.exports = (robot) ->
robot.respond /you('re|\s).*/i, (msg) ->
robot.respond /(fuck|suck|dick|bitch|asshole)/i, (msg) ->
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.