moose-team / friends

:tv: P2P chat powered by the web.
http://moose-team.github.io/friends/
MIT License
3.17k stars 341 forks source link

Create a Friends <--> IRC bridge #80

Closed bnvk closed 9 years ago

bnvk commented 9 years ago

If users could subscribe to IRC channels from within the Friends interface whereby the IRC conversations are replicated to the Friends DB, that would super cool.

Seems like setting up a server instance that uses peerbot and listens to IRC for events should be doable!

ungoldman commented 9 years ago

:+1:

misspokeycat commented 9 years ago

Something like !peerbot IRC <irc channel>? Also, should this be one-way where we can only get messages from IRC, or should it be possible for peerbot to send messages to IRC as well?

tunnckoCore commented 9 years ago

:+1: yea would be absolutely cool.

ungoldman commented 9 years ago

peerbot has been broken out into https://github.com/moose-team/peerbot, that might serve as a starting point to an IRC bridge.

@pokemonmegaman ideally bridges are two way (see https://github.com/finnp/gitter-irc-bot for an example).

ekmartin commented 9 years ago

I'm working on a two way bridge based on slack-irc and peerbot, should have something functioning up soon.

bcomnes commented 9 years ago

Nice @ekmartin!

ekmartin commented 9 years ago

https://github.com/ekmartin/friends-irc - sends messages back and forth between the channels provided in the config.

Right now it posts messages to the Swarm channel as an anonymous user with the IRC message author's username, but it might be good to make it more explicit. @ngoldman suggested posting the messages from IRC -> Swarm as one user and rather put the username in the message body, similar to how the messages from Swarm -> IRC are posted now (<username> message by one IRC user). @bcomnes also suggested posting the messages to Swarm as (IRC) username.

I've set it up in #friends on Freenode, give it a try :)

screen shot 2015-05-03 at 12 39 55 am

beaugunderson commented 9 years ago

score! what's the repo for it (so we can close this and add new issues there if necessary?)

beaugunderson commented 9 years ago

oh oops i see it linked above!

bnvk commented 9 years ago

Awesome y'all :+1:

ekmartin commented 9 years ago

If you think it's a good idea and a decent implementation I wouldn't mind transferring the repo to moose-team.

ungoldman commented 9 years ago

@ekmartin please do so!