Skip to content

Instantly share code, notes, and snippets.

@paul-english
Created June 5, 2013 21:16
Show Gist options
  • Save paul-english/5717391 to your computer and use it in GitHub Desktop.
Save paul-english/5717391 to your computer and use it in GitHub Desktop.
Hubot hacker plugin
# Description:
# None
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hack - For hackers
#
# Author:
# penglish
module.exports = (robot) ->
robot.hear /h[a4]+ck/i, (msg) ->
hacker_clips = [
"http://www.youtube.com/watch?v=bLlj_GeKniA" # julia stiles - ghostwriter
"http://www.youtube.com/watch?v=dFUlAQZB9Ng" # jurassic park - it's a unix system
"http://www.youtube.com/watch?v=vO_O4AD1MhI" # swordfish - weekend development
"http://www.youtube.com/watch?v=odOzMz-fOOw" # the social network - image stealing (only because zuck uses emacs)
"http://www.youtube.com/watch?v=0TJuipCrjZQ" # the matrix - nmap
"http://www.youtube.com/watch?v=u8qgehH3kEQ" # ncis...
"http://www.youtube.com/watch?v=hkDD03yeLnU" # csi vb gui
"http://www.youtube.com/watch?v=ecPeSmF_ikc" # wargames shall we play a game
"http://www.youtube.com/watch?v=vYNnPx8fZBs" # hackers
]
rand = Math.floor(Math.random() * hacker_clips.length)
msg.send hacker_clips[rand]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment