cydrobolt / node-irc

NodeJS IRC client library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:JavaScript 100.0%