Skip to content

Instantly share code, notes, and snippets.

@ThisIsMissEm
Created February 3, 2010 09:42
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 ThisIsMissEm/293511 to your computer and use it in GitHub Desktop.
Save ThisIsMissEm/293511 to your computer and use it in GitHub Desktop.
/*===============================================
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