Created
April 10, 2015 19:58
-
-
Save mystor/ef025a56af8a349b2276 to your computer and use it in GitHub Desktop.
hackme
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
var irc = require('irc'); | |
var client = new irc.Client("irc.mozilla.org", "spoofme", { | |
channels: [ "#interns" ] | |
}); | |
client.addListener("pm", function(from, msg) { | |
if (from === "mystor" && msg === "hack") { | |
client.say("#interns", "mystor: Help! Someone hacked me!"); | |
} else { | |
client.say(from, "nope. Try again"); | |
} | |
}); |
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
{ | |
"name": "spoofme", | |
"version": "1.0.0", | |
"description": "Message this bot with the nick \"mystor\", and you win", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "Michael Layzell <[email protected]>", | |
"license": "MIT", | |
"dependencies": { | |
"irc": "^0.3.11" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment