Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 30 23:18
    nitind commented #266
  • Aug 30 23:17
    nitind opened #267
  • Aug 29 15:40
    coveralls commented #266
  • Aug 29 15:34
    nitind opened #266
  • Aug 26 16:58
    Petteri opened #265
  • Jul 19 18:06
    paigeadelethompson commented #264
  • Jul 19 18:05
    paigeadelethompson opened #264
  • Jul 19 17:57
    paigeadelethompson closed #263
  • Jul 19 17:57
    paigeadelethompson commented #263
  • Jul 19 17:56
    paigeadelethompson commented #263
  • Jun 26 18:44
    paigeadelethompson commented #263
  • Jun 26 18:35
    paigeadelethompson opened #263
  • Jun 16 02:26
    ekmartin closed #261
  • Jun 16 02:26
    ekmartin closed #259
  • Jun 16 02:26
    ekmartin closed #258
  • Jun 16 02:26
    ekmartin closed #256
  • Jun 16 02:26
    ekmartin closed #255
  • Jun 16 02:26
    ekmartin closed #254
  • Jun 16 02:26
    ekmartin closed #253
  • Jun 16 02:26
    ekmartin closed #252
Martin Ek
@ekmartin
By the way flamingice, a bit unrelated, but if you update to the latest version of slack-irc you shouldn't have the problem with messages not being sent anymore, and thus shouldn't need to restart the bot multiple times
per day - node-slack-client merged a few pull requests that tried to resolve the disconnect issue
flamingice
@flamingice
okay thank you
flamingice
@flamingice
When following the gihub clone + build path I don't get an index.js
Is it possible to use "npm install -g slack-irc" without beeing root?
Martin Ek
@ekmartin
Yes, you just have to install your global npm packages to somewhere you can access, see https://github.com/sindresorhus/guides/blob/master/npm-global-without-sudo.md or similar
After cloning, running npm install, npm run build you should have an index.js at dist/index.js
You can also start it with npm start -- --config /path/to/config.json
flamingice
@flamingice
Thanks
Kellen
@goodroot
Hey there - if I wanted to host this application on something like Heroku, what would my profile look like?
I can get it going locally, but not sure how to structure the Profile...
Martin Ek
@ekmartin
Hi goodroot - that's a bit tricky since slack-irc doesn't rely solely on environment variables for configuration
The easiest would be to fork the project, and check in the configuration file in the repository. If you use JS instead of JSON you can put the sensitive stuff in environment variables, like here: https://github.com/ekmartin/slack-irc/pull/27#issuecomment-97443176 (note the process.env.SLACK_TOKEN)
More background info regarding heroku and slack-irc:
It's been a while since I've used Heroku, but as I mention in the last comment there it might be possible to deploy slack-irc on a worker dyno (if it's still called that) - since it doesn't need to listen to any ports
Kellen
@goodroot
Awesome - thnaks, ekmartin :D
RoboMWM
@RoboMWM
Is there any way to set server password?
RoboMWM
@RoboMWM
So unless there's a way to send raw commands via autosendcommands before/while it's connecting to the server (which given my limited knowledge of raw IRC commands, this probably won't do anything), it appears #106 needs to be implemented in some way - unless someone knows of a way to login to ZNC without filling in the server password.
Martin Ek
@ekmartin
RoboMWM: it looks like setting password in options should send PASS, see https://github.com/martynsmith/node-irc/blob/master/lib/irc.js#L721
Isn't that the command ZNC is expexting?
Martin Ek
@ekmartin
If you export NODE_ENV=development before running slack-irc you should see a full debug output, with the irc commands sent
RoboMWM
@RoboMWM
error: Received error event from IRC prefix=irc.znc.in, server=irc.znc.in, command=err_passwdmismatch, rawCommand=464, c
ommandType=error, args=[nicknamehere, Password required]
16 Apr 00:34:27 - ERROR: { prefix: 'irc.znc.in',
  server: 'irc.znc.in',
  command: 'err_passwdmismatch',
  rawCommand: '464',
  commandType: 'error',
  args: [ 'nicknamehere', 'Password required' ] }
[
  {
    "nickname": "nicknamehere",
    "server": "localhost",
    "token": "slackbot token here",
    "channelMapping": {
      "#irc": "#MLG"
    },
    "ircOptions": {
      "userName": "nicknamehere",
      "password": "passwordhere",
      "port": portnumberhere,
      "secure": true,
      "showErrors": true,
      "selfSigned": true,
      "certExpired": true
    }
  }
]

export NODE_ENV=development

Not sure what you mean by that/how to enable that, I'm entirely new to running nodeJS, and currently running this via Powershell on Windows Server 2012 R2

RoboMWM
@RoboMWM
huh
Now it's working
I guess when I was playing around with different ircOptions in attempts to get it to work I added the sasl option. Removing that seems to work now. : S Thanks
Martin Ek
@ekmartin
Nice! SASL is more for nickserv stuff yeah I think, cool that you got it running on powershell
Blake Girardot
@bgirardot
I am trying to deploy this as a heroku app, but I have never used heroku before. I forked the repo and used github as the deployment for heroku. I understand the slack token needs to be a env variable in heroku, which I set no problem. The part I am not getting is how I specify the config file for the rest of the configs in heroku. Probably more of a heroku question really, but thought I would ask here because I hope it is a simple answer. Googling for it did not work out well, too much heroku cli client stuff comes back related to config and specify, etc. I have no problem putting my config in my fork in github, just do not know how to specify it so slack-irc will use it.
Blake Girardot
@bgirardot
Kind of embarrassing, but I see the answer in the readme.md env variable CONFIG_FILE :)
Blake Girardot
@bgirardot
Got it running via heroku. Had to add config.js, Procfile and modify package.json https://github.com/bgirardot/slack-irc
Martin Ek
@ekmartin
Hey bgirardot! Glad you figured it out, didn't see your message before now.
One of the problems with Heroku is that your bot will restart at least once every 24 hours (I think this is the same for worker dynos as well), which looks a bit bad for IRC bots - not a huge issue though.
Blake Girardot
@bgirardot
Ya, unless I am not thinking of something, one part/join per day should not be too bad. Even 2 a day would be fine. So far so good, your bot is exactly what I had in mind, thank you for sharing.
Martin Ek
@ekmartin
No problem, glad you like it :)
sravanthi17
@sravanthi17
Hello..
Am trying to integrate slack with irc
i have the following error
npm http 404 https://registry.npmjs.org/slack/client/3.0.0
npm ERR! 404 'slack' is not in the npm registry
Any help would be appreciated
Martin Ek
@ekmartin
Sorry for the terribly late answer @sravanthi17, if you still need help that error is probably because of a too old npm version (that doesn't support namespaces)
Upgrade your node.js version and it should work :)
Alex Newman
@posix4e
Does you bot connect over gitter as well?
Martin Ek
@ekmartin
No, but might work over Gitter's IRC bridge posix4e
Alexander Nestorov
@alexandernst
@ekmartin hey, I'll have some spare time this weekend and I finally managed to get to the feature request I opened in your slack-irc project a few months ago. I'm talking about ekmartin/slack-irc#168
I still want to make that and I'd like to know your position. Are you still closed to the option of having that feature inside your project? If so, may I know the exact reasons that worry you?
Procrastinator
@aayanl
hey all, is there a way for the irc relay be able to relay bots from slack messages
Coryvmcs1
@Coryvmcs1
@ekmartin hey there
Aron Griffis
@agriffis
has anybody looked into making multiple connections to the IRC server, one per slack user, so that messages from slack could appear in IRC under proper usernames instead of under the SlackIRCBridge user?