Created
January 30, 2012 18:13
-
-
Save bcardarella/1705739 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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