Sha256: 24b0dad3b66044f44d62ae57c2815d0b44b67b8bc6790edfefa2cc2021fa7283

Contents?: true

Size: 364 Bytes

Versions: 17

Compression:

Stored size: 364 Bytes

Contents

class SlackSmartBot

  def get_access_channels()
    if File.exist?("#{config.path}/rules/#{@channel_id}/access_channels.rb")
      file_conf = IO.readlines("#{config.path}/rules/#{@channel_id}/access_channels.rb").join
      unless file_conf.to_s() == ""
        @access_channels = eval(file_conf)
      end
    else
      @access_channels = {}
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
slack-smart-bot-1.14.2 lib/slack/smart-bot/utils/get_access_channels.rb
slack-smart-bot-1.14.1 lib/slack/smart-bot/utils/get_access_channels.rb
slack-smart-bot-1.14.0 lib/slack/smart-bot/utils/get_access_channels.rb
slack-smart-bot-1.13.2 lib/slack/smart-bot/utils/get_access_channels.rb
slack-smart-bot-1.13.1 lib/slack/smart-bot/utils/get_access_channels.rb
slack-smart-bot-1.13.0 lib/slack/smart-bot/utils/get_access_channels.rb
slack-smart-bot-1.12.9 lib/slack/smart-bot/utils/get_access_channels.rb
slack-smart-bot-1.12.8 lib/slack/smart-bot/utils/get_access_channels.rb
slack-smart-bot-1.12.7 lib/slack/smart-bot/utils/get_access_channels.rb
slack-smart-bot-1.12.6 lib/slack/smart-bot/utils/get_access_channels.rb
slack-smart-bot-1.12.5 lib/slack/smart-bot/utils/get_access_channels.rb
slack-smart-bot-1.12.4 lib/slack/smart-bot/utils/get_access_channels.rb
slack-smart-bot-1.12.3 lib/slack/smart-bot/utils/get_access_channels.rb
slack-smart-bot-1.12.2 lib/slack/smart-bot/utils/get_access_channels.rb
slack-smart-bot-1.12.1 lib/slack/smart-bot/utils/get_access_channels.rb
slack-smart-bot-1.12.0 lib/slack/smart-bot/utils/get_access_channels.rb
slack-smart-bot-1.11.0 lib/slack/smart-bot/utils/get_access_channels.rb