Open sihu opened 5 years ago
That seems consistent with what I saw. Would love a PR with proper README/UPGRADING documentation and an option to override this behavior just like for bot messages.
@dblock that's fine! I have two open questions before i start:
override this behavior just like for bot messages.
, did you mean, just like message_to_self
?SlackRubyBot::Commands::Unknown
... so an unknown-message should never go to a bot.
I noticed that my Bot had problems with ephemeral messages, in particular with unfolding URLs.
How it can be reproduced
"Pssst! I didn\u2019t unfurl <https:\/\/example.com> because it was already shared in this channel quite recently (within the last hour) and I didn\u2019t want to clutter things up."
Sorry @slackbot, I don't understand that command!
Possible solution
The message hook should filter out those ephemeral messages. I think it will be something like:
lib/slack-ruby-bot/hooks/message.rb:
I would be willing to contribute this fix if you like the solution.