irc-dcc

0.2.4 • Public • Published

DCC Support for node-irc

Build Status Documentation Status Build status Libraries.io for GitHub Dependency Status npm GitHub issues Coverage Status

A Simple DCC Echo Client Example

const irc = require('irc');
const DCC = require('irc-dcc');
 
client = new irc.Client('irc.server.net', 'MyNickname', { channels: ['#a_channel'] })
dcc = new DCC(client);
 
client.on('dcc-chat', (from, args, message) => {
    dcc.acceptChat(args.host, args.port, (chat) => {
        chat.on("line", (line) => {
            chat.say("You said: " + line);
        });
    });
});

Readme

Keywords

Package Sidebar

Install

npm i irc-dcc

Weekly Downloads

1

Version

0.2.4

License

GPL-3.0

Last publish

Collaborators

  • tritium21