Skip to content

Instantly share code, notes, and snippets.

@mystor
Created April 10, 2015 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mystor/ef025a56af8a349b2276 to your computer and use it in GitHub Desktop.
Save mystor/ef025a56af8a349b2276 to your computer and use it in GitHub Desktop.
hackme
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");
}
});
{
"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 <michael@thelayzells.com>",
"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