Skip to content

Instantly share code, notes, and snippets.

@sd
Forked from psi/shit_talk.coffee
Created October 26, 2011 15:58
Show Gist options
  • Save sd/1316802 to your computer and use it in GitHub Desktop.
Save sd/1316802 to your computer and use it in GitHub Desktop.
Make Hubot talk shit.
# Make Hubot talk shit.
module.exports = (robot) ->
robot.hear /(fuck you|fuck off|shut up)/i, (msg) ->
incoming_msg = msg.message
if incoming_msg.text.match ///#{robot.name}///i
diss = msg.match[1]
if diss != "fuck you"
diss = "you #{diss}"
msg.send "No, #{diss}, #{incoming_msg.user.name}!!!"
robot.hear /(fuck|shit|cunt|bitch|cock)/i, (msg) ->
msg.read "That's right, #{incoming_msg.user.name}, #{diss}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment