0.1.1 • Published 11 years ago

uberirc v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
11 years ago

UberIRC Build Status


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()
0.1.1

11 years ago

0.1.0

11 years ago