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

gitter irc

Open hamptonmoore opened this issue 7 years ago • 5 comments

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 avatar Sep 21 '16 00:09 hamptonmoore

I replaced * with my password

hamptonmoore avatar Sep 21 '16 01:09 hamptonmoore

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

sh1omi avatar Sep 21 '16 05:09 sh1omi

You absolutely can send a password with node-irc

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

tritium21 avatar Sep 24 '16 14:09 tritium21

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

sh1omi avatar Sep 25 '16 07:09 sh1omi

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

secure instead of sasl

moshmage avatar Nov 26 '16 03:11 moshmage