martynsmith / node-irc

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

gitter irc #480

Open hamptonmoore opened 7 years ago

hamptonmoore commented 7 years ago

So it is not working with gitter irc here is my code

var irc = require('irc'); var client = new irc.Client('irc.gitter.im', 'LilCoders-git', { channels: ['#lilcoders/lilcoders'], port: 6667, sasl: true, password: "*", }); client.addListener('message', function (from, to, message) { console.log(message); });

hamptonmoore commented 7 years ago

I replaced * with my password

sh1omi commented 7 years ago

You dont need sasl to connect to gitter, you only need the server password. node-irc is not updated for long time and I dont think that you can set a server password.

you should check more updated package like this: https://github.com/caffeinery/coffea/tree/master

tritium21 commented 7 years ago

You absolutely can send a password with node-irc

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

sh1omi commented 7 years ago

so remove the line "sasl: true," should solve ur problem.

moshmage commented 7 years ago
{
  "server": "irc.gitter.im",
  "nick": "moshmage",
  "channels": ["#yanbi/Lobby"],
  "port": 6667,
  "secure": true,
  "password": "*"
}

secure instead of sasl