weechat

WeeChat Relay Protocol

WeeChat.js

WeeChat Relay Protocol module for Node.js

npm install weechat
var weechat = requrie('weechat');

// Can only connect to localhost
// First argument is port, second is password
weechat.connect(8000, 'test', function(ok) {
    if (ok) {
        console.log('Connected!');

        weechat.write('info version', function(version) {
            console.log('WeeChat version', version);
        });
    }
});

weechat.on('_buffer_line_added', function(line) {
    console.log('Got a line!', line);
});