ekmartin / slack-irc

Connects Slack and IRC channels by sending messages back and forth.
MIT License
588 stars 155 forks source link

Feature Request: Allow bot to simulate direct messages #216

Closed ahungry closed 6 years ago

ahungry commented 6 years ago

I find this relay almost perfect for doing all my slack conversing over IRC using my preferred IRC client(s), however, it seems there is no support for direct messages (if I receive a message over slack).

I would like to see something (I may hack at it and create a PR) to accomplish:

I think to do this may require simulating each slack messenger as an IRC user, instead of using the general slack-relay (s-rel) user - assuming this repo uses the wss (RTM from slack), those direct messages should be coming through very similarly to the channel messages.

The use case for this is for when the slack (server side) has IRC support turned off due to security reasons, but still allows the API to be opened up.

Is there anything similar or that has ever been considered previously?

ekmartin commented 6 years ago

I've generally avoided adding stuff like direct message support in the past to keep the focus on slack-irc as a bridge, and not a personal client. There's a slack-irc-client project that does basically what you're describing, but in the other direction (using Slack as an IRC client).

If you really want to do this I think it'd be best to start from scratch (or fork this project). There's an argument to be held that this exposes the exact same security risk as enabling the IRC bridge itself though, but I'll leave that up to you.

ahungry commented 6 years ago

Thanks!