ekmartin / slack-irc

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

Possible one-way push configuration? #192

Closed aspires closed 7 years ago

aspires commented 7 years ago

Hey there! I've been reading documentation and old issues to see if there's a way to do this, so apologies if I missed something obvious.

Is there a way to configure this bot to do a one-way push from IRC to Slack, without pushing back from Slack to IRC? If there's a config file change, or something more substantial we'd need to do to make this happen, we're down to give it a try.

aspires commented 7 years ago

Ugh, the moment I file...

    // Prevent messages posted by Slackbot (e.g. Slackbot responses)
    // from being posted into the IRC channel:
    "muteSlackbot": true, // Off by default

Sorry about the noise!

ekmartin commented 7 years ago

That's not possible with the current set of configuration options. muteSlackbot only disables Slackbot messages (Slack's actual bot user), not all of the communication. If you want to fix this for your own use you'd basically just have to remove this block of code and it should work: https://github.com/ekmartin/slack-irc/blob/master/lib/bot.js#L97-L103

aspires commented 7 years ago

@ekmartin that code change did the trick. Thanks!

ekmartin commented 7 years ago

Great!