ekmartin / slack-irc

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

support bot messages with message attachment fallback #152

Open guruofquality opened 8 years ago

guruofquality commented 8 years ago

Just wanted to share my latest patch for supporting bot messages. Related conversation for reference. I have been using this with github and twitter integration in slack.

Here is the breakdown:

So theres no additional config to support this. The change basically just means that bot messages are still ignored, except when they contain an attachment with a fallback message. So I hope that this is mostly an additive change without any negative side-effects. Thanks for your consideration!

jywarren commented 7 years ago

Hi, any updates on this PR or what it'd take to get it adopted? Thanks so much!

guruofquality commented 7 years ago

I couldn’t figure out how to get the checks to pass, because the traversal checks through the code is different (obviously) with the changes. But the changes themselves have been working for my personal uses this whole time FWIW.

csoni111 commented 6 years ago

Hi I am new user of slack-irc and would really like this feature to be merged. @guruofquality The checks were failing because of this test. You may change the subtype in that message to something other than bot_message since now that is allowed. Also you will need to resolve the conflicting files.