Created
February 3, 2010 09:42
-
-
Save ThisIsMissEm/293511 to your computer and use it in GitHub Desktop.
This file contains 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
/*=============================================== | |
File: | |
Author: Micheil Smith | |
Description: | |
===============================================*/ | |
var sys = require("sys"); | |
var Protocol = require("../lib/protocol"); | |
var irc = new Protocol.client({ | |
delimeter: "\r\n", | |
onConnect: function(){ | |
sys.puts(":: connected"); | |
username = "test-client"; | |
this.send("NICK "+username); | |
this.send("USER " + username + " * 8 :node.js inspired IRCCAT"); | |
this.send("JOIN #Jet.js"); | |
}, | |
onReceive: function(data){ | |
sys.puts(">> "+data); | |
} | |
}); | |
irc.connect("6667", "irc.freenode.net"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment