node-irc
node-irc copied to clipboard
Client config password field undocumented
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.
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 can you share what you found please?
@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'],
});
@KristobalJunta Sorry for the delay, @scarlac is right, using
{ password: 'your-password' }
is the answer.