node-irc icon indicating copy to clipboard operation
node-irc copied to clipboard

Client config password field undocumented

Open cyounkins opened this issue 8 years ago • 4 comments

Near documentation for sasl it references the password field but is not listed in the options object. The field appears to be used for more than sasl auth: when sasl is false, the password is used on Twitch IRC servers to auth. Obviously the library is sending it, but I haven't found where.

cyounkins avatar May 10 '16 19:05 cyounkins

It really should be added to the documentation. Spent way too long trying to figure out how I was going to add a Twitch.tv oauth-token to the irc client options. Thanks for pointing out that it existed.

mick0n avatar Aug 28 '16 10:08 mick0n

@mick0n can you share what you found please?

KristobalJunta avatar Feb 12 '17 02:02 KristobalJunta

@KristobalJunta You can read the source code, but here's an example:

var irc = require('irc');
var client = new irc.Client('xxx', 'username', {
	password: 'xxxxx',
	debug: true,
	channels: ['#somehannel'],
});

scarlac avatar Feb 18 '17 21:02 scarlac

@KristobalJunta Sorry for the delay, @scarlac is right, using { password: 'your-password' } is the answer.

mick0n avatar Feb 18 '17 21:02 mick0n