Skip to content

ninjacato/node-irc

Folders and files

Image for: Folders and files
NameName
Last commit message
Last commit date

Latest commit

Image for: Latest commit
 

History

Image for: History
46 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image for: Repository files navigation

DEPRECATION NOTICE: This library is no longer maintained.

node-irc

node-irc is a socket wrapper for the IRC protocol that extends Node.js' EventEmitter. node-irc aims to be an efficient, extremely easy to use IRC library used to build bots and clients.

Get started

Image for: Get started

Install node-irc with npm.

npm install node-irc

Import node-irc.

var ircClient = require('node-irc');

Pass in the server, port, nickname and fullname as parameters to the constructor.

var client = new ircClient('irc.freenode.net', 6667, 'SomeNick', 'SomeFullname');

Add an event handler for what to do When the server is ready, like joining a channel and say something weird.

client.on('ready', function () {
  client.join('#Node.js');
  client.say('#Node.js', 'I see node people.');
});

Connect to the server

client.connect()

More details

See samples and wiki

About

Image for: About

Node.js socket wrapper for the IRC protocol (client-side)

Resources

License

Stars

Watchers

Forks

Releases

Image for: Releases
No releases published

Packages

Image for: Packages 0
No packages published

Contributors 5

Image for: Contributors 5