Skip to content
Tristan edited this page Jul 23, 2015 · 4 revisions

These are the commands available to you for interacting with the IRC server:

ircClient.join(channel)

Simply joins a channel, should usually be put in the ircClient.on('ready', function ());

ircClient.quit(message)

Quit the client. Note: The 'message' part won't always work because most servers block it because of spam.

ircClient.part(channel)

Parts a channel

ircClient.say(receiver, message)

Sends a message to a receiver. Receiver may either be a string of a nickname or a channel if it has the hash prefix (#).

ircClient.nick(newNick)

Changes the client nickname to newNick

ircClient.mode(channel, mode, nick)

mode sets the mode on a specific channel or user. To use it to OP a person on #Node.js you could do:

client.mode('#Node.js', '+o', nick);

or ban

client.mode('#Node.js', '+b', nick);

ircClient.kick(channel, nick, reason)

Kicks a user from the specified channel, if reason is not provided this will default to the users nickname.