Created
October 25, 2011 23:15
-
-
Save psi/1314761 to your computer and use it in GitHub Desktop.
Make Hubot talk shit.
This file contains hidden or 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
# 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}!!!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment