martynsmith / node-irc

NodeJS IRC client library
GNU General Public License v3.0
1.32k stars 425 forks source link

how to connect with a server password for twitchtv/justintv? #148

Closed ghost closed 11 years ago

ghost commented 11 years ago

Sorry I don't know where else to post this.

I don't know where to include the server password(which is the login password for each user) for an irc server below.

Can anyone help

var bot = new irc.Client("user.ircjtv.com", "Mrbotman", {
channels: ["#sam"]
});
katanacrimson commented 11 years ago

"password" on options object will do the trick iirc.

https://github.com/martynsmith/node-irc/blob/master/lib/irc.js#L598

ghost commented 11 years ago

Thank you so much, damianb!

For anyone who needs an example:

var bot = new irc.Client("user.ircjtv.com", "Mrbotman", {
channels: ["#sam"],
password: "PASSWORDHERE"
});