Socket
Socket
Sign inDemoInstall

ircb

Package Overview
Dependencies
1
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ircb

IRC library which *I* like


Version published
Weekly downloads
3
decreased by-80%
Maintainers
2
Install size
88.3 kB
Created
Weekly downloads
 

Readme

Source

ircb

Name courtesy of @isaacs.

An IRC library which I like.

Usage

Creating a client

var ircb = require('ircb');

var irc = ircb({
  host: 'irc.freenode.org',
  secure: true,
  nick: 'mycoolbot',
  username: 'mycoolbot',
  realName: 'mycoolbot',
  channels: ['#node.js'] // optional
}, function () {
  console.log('Connected');
  console.log('MOTD:\n');
  console.log(irc.motd);
});

Joining a channel

irc.join('#node.js', function (err) {
  if (err) throw err;
  console.log('Joined #node.js');
});

Saying stuff

To a channel
irc.say('#node.js', 'hello world');
To a person
irc.say('mmalecki', 'hello world');

Getting list of people from a channel

irc.names('#node.js', function (err, names) {
  if (err) throw err;
  console.log('There are ' + names.length + ' people in #node.js channel');
});

FAQs

Last updated on 06 Jul 2013

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc