weechat
v0.0.17
Published
WeeChat Relay Protocol
Downloads
18
Readme
WeeChat.js
WeeChat Relay Protocol module for Node.js
npm
npm install weechat
Usage
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);
});