Node.js makes writing IRC-related programs straightforward and super-efficient, thanks to its evented networking. Therefore it isn’t surprising that a lot of projects have appeared already.
IRC Daemon Demo
This IRC daemon demo presented at jsconf.eu/2009 demonstrates how to build a server. It has simple prototypal classes for channels and users, and parses IRC commands using a regex and a
switch. It also uses node’s TCP library.
log.js file demonstrates how to use the
egret is a command-line IRC client. The base code uses node’s TCP sockets and a hash to interpret IRC commands into English.
nodejs.irc is an IRC bot. It’s not finished yet, but the code is separated out and easy to follow.
aoibot is similar to nodejs.irc, but it looks like the finished product will be less generic. Again, it’s unfinished, so I expect the author still has a lot of ideas and work to do.