0.1.1 • Published 11 years ago
uberirc v0.1.1
UberIRC 
NOTICE: UberIRC is currently in the early stages of development. Stuff will break as features are developed and versions are released. Nothing should be considered stable until version 1.0.0 is released.
UberIRC is a Node.js IRC client module written in CoffeeScript. It's goal is to replace the widely-used 'irc' module.
Example
Javascript:
var IrcClient = require("uberirc").IrcClient,
client = new IrcClient({
server: "chat.freenode.net",
nick: "examplebot"
});
client.on('welcome', function() {
client.join("#uberirc");
client.chat("#uberirc", "Hello, world!");
});
client.on('chat', function(e) {
if (e.target == "#uberirc" && e.content == "!hello") {
client.chat("#uberirc", "Hello!");
}
});
client.connect();
CoffeeScript:
IrcClient = require("uberirc").IrcClient
client = new IrcClient
server: "chat.freenode.net"
nick: "examplebot"
client.on "welcome", ->
client.join "#uberirc"
client.chat "#uberirc", "Hello, world!"
client.on "chat", (e) ->
if e.target is "#uberirc" and e.content is "!hello"
client.chat "#uberirc", "Hello!"
client.connect()