NodeJS lib to connect and interact with Quassel IRC server.
npm install --production libquassel
npm install libquassel
In order to create a browser compatible file, run the following command
# for nodejs 0.12 to 4.x
grunt lts
# for nodejs >=5
grunt stable
var Quassel = require('../lib/libquassel.js');
var quassel = new Quassel(
"quassel.domain.tld", // Quasselcore address
4242, // Quasselcore port
// Options:
// nobacklogs (default false): if true, do not handle backlogs
// backloglimit: number of backlogs to request per buffer at connection
// unsecurecore (default false): if true, do not use SSL to connect to the core
{backloglimit: 10},
function(next) {
next("user", "password");
});
quassel.on('network.init', function(networkId) {
network = quassel.getNetworks().get(networkId);
// ...
});
// ...
quassel.connect();
All events are detailed in test/manual.js for now.
See test/manual.js for details.
Copyright (c) 2014-2015 Joël Charles
Licensed under the MIT license.