orbit icon indicating copy to clipboard operation
orbit copied to clipboard

Orbit <--> IRC

Open haadcode opened this issue 7 years ago • 3 comments

I would love to connect orbit to IRC. It should be possible to join an IRC channel in Orbit and post messages to it as well as receive all the channel messages, perhaps even private messages.

There are multiple ways to do this, so ideas and possible solutions highly welcome in the comments!

What I'm thinking currently as a prototype:

  • Make a Node.js program and use Orbit.js as a module
  • Use https://www.npmjs.com/package/irc for the IRC part
  • Hook up irc module to Orbit module
    • irc.on('join', (channel) => orbit.join(channel))
    • irc.on('message', (m) => orbit.send(ircChannel, m))
    • etc.
  • Run as a stand-alone, long-running process, ideally on a VPS(?)
  • This would give IRC to Orbit functionality
  • Sending messages from Orbit to IRC would happen similarly

haadcode avatar Aug 04 '16 08:08 haadcode

Funny, I thought the same thing. I created this prototype about two weeks ago: https://gist.github.com/kobigurk/0e0f61faa8031c77198b37bd995d6eb3 It's nowhere near complete, but it does the job of a simple relay.

kobigurk avatar Oct 08 '16 19:10 kobigurk

@kobigurk nice! Is this something you'd be interested to continue working and help us reach the goal of getting Orbit to work with IRC in general?

I personally would like to have work done on this in the next three months and was wondering if you'd be willing to participate and to what capacity?

haadcode avatar Oct 10 '16 14:10 haadcode

@haadcode this is appealing, but I'm not sure I can commit to that right away. I'll update you!

kobigurk avatar Oct 16 '16 16:10 kobigurk