lib/ruboty/adapters/slack_rtm.rb in ruboty-slack_rtm-2.4.3 vs lib/ruboty/adapters/slack_rtm.rb in ruboty-slack_rtm-2.4.4

- old
+ new

@@ -101,10 +101,10 @@ def on_message(data) user = user_info(data['user']) || {} channel = channel_info(data['channel']) - if data['subtype'] == 'bot_message' && ENV['SLACK_IGNORE_BOT_MESSAGE'] == '1' + if (data['subtype'] == 'bot_message' || user['is_bot']) && ENV['SLACK_IGNORE_BOT_MESSAGE'] == '1' return end if channel return if channel['name'] == (ENV['SLACK_GENERAL_NAME'] || 'general') && ENV['SLACK_IGNORE_GENERAL'] == '1'