-
Notifications
You must be signed in to change notification settings - Fork 9
Commands
Tristan edited this page Jul 23, 2015
·
4 revisions
These are the commands available to you for interacting with the IRC server:
Simply joins a channel, should usually be put in the ircClient.on('ready', function ());
Quit the client. Note: The 'message' part won't always work because most servers block it because of spam.
Parts a channel
Sends a message to a receiver. Receiver may either be a string of a nickname or a channel if it has the hash prefix (#).
Changes the client nickname to newNick
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);
Kicks a user from the specified channel, if reason is not provided this will default to the users nickname.