An IRC library for node.js
The best IRC library for node.js
npm install irc-js
We recently released the first beta of IRC-js 2.0. This release brings many changes, and documentation is not quite ready.
IRC-js 2.0 uses a couple of new ECMAScript features, so currently you must use
--harmony flag when running it.
So, for the adventurous, here's how to get started with 2.0:
/* IRC-js 2.0 provides a set of objects representing IRC entities, such as:* Client An IRC client, create one of these first.* Message A client sends and receives instances of this object.* Channel An IRC channel.* Person An IRC user.* Here follows a simple bot demonstrating basic usage.*/var irc = ;/* First, lets create an IRC Client.* The quickest way is to use the laziness function `irc.connect()`.* It takes an object configuring the bot, and returns a Client instance.*/irc;