node-irc is a socket wrapper for the IRC protocol that extends Node.js' EventEmitter. node-irc aims to be an efficient, extremely easy to use IRC library used to build bots and clients.
npm install node-irc
var ircClient = require('node-irc');
var client = new ircClient('irc.freenode.net', 6667, 'SomeNick', 'SomeFullname');
Add an event handler for what to do When the server is ready, like joining a channel and say something weird.
client.on('ready', function () {
client.join('#Node.js');
client.say('#Node.js', 'I see node people fart.');
});
client.connect()