lib/slack-ruby-bot/config.rb in slack-ruby-bot-0.13.0 vs lib/slack-ruby-bot/config.rb in slack-ruby-bot-0.14.0
- old
+ new
@@ -2,14 +2,18 @@
module SlackRubyBot
module Config
extend self
- ATTRS = %i[token url aliases user user_id team team_id allow_message_loops send_gifs logger].freeze
+ ATTRS = %i[token url aliases user user_id team team_id allow_bot_messages allow_message_loops send_gifs logger].freeze
attr_accessor(*ATTRS)
+ def allow_bot_messages?
+ !!allow_bot_messages
+ end
+
def allow_message_loops?
- allow_message_loops
+ !!allow_message_loops
end
def send_gifs?
return false unless defined?(Giphy)