Skip to content

oconnore/node-irc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

irc

Modern IRC client library for Node

Attention: node-irc is currently being rewritten. If you're looking for the last released version, please checkout the 0.3.x branch.

node-irc is a modern IRC client library for Node, exposing a simple interface to deal with IRC connections.

Usage

Here's an example of a simple client that will echo anything send to a channel, #echotest.

var irc = require("irc");

var client = new irc.Client({
    connection: { host: "localhost", port: 6667 },
    identity: { nickname: "EchoClient" }
});

var channel = client.channel("#echotest");

channel.on("message", function(message) {
    channel.send("%s: %s", message.nickname, message.text);
})

client.connect(function() {
    console.log("Connected!");
});

About

NodeJS IRC client library

Resources

Stars

Watchers

Forks

Packages

No packages published