Sha256: 7fba5f6d403c2ff75e4c61d53596d208eea0fb0aad7af4ca493adebcb914980c

Contents?: true

Size: 318 Bytes

Versions: 22

Compression:

Stored size: 318 Bytes

Contents

class SlackSmartBot

  def get_routines(channel = @channel_id)
    if File.exist?("#{config.path}/routines/routines_#{channel}.rb")
      file_conf = IO.readlines("#{config.path}/routines/routines_#{channel}.rb").join
      unless file_conf.to_s() == ""
        @routines = eval(file_conf)
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
slack-smart-bot-1.10.0 lib/slack/smart-bot/utils/get_routines.rb
slack-smart-bot-1.9.2 lib/slack/smart-bot/utils/get_routines.rb
slack-smart-bot-1.9.1 lib/slack/smart-bot/utils/get_routines.rb
slack-smart-bot-1.8.2 lib/slack/smart-bot/utils/get_routines.rb
slack-smart-bot-1.8.1 lib/slack/smart-bot/utils/get_routines.rb
slack-smart-bot-1.8.0 lib/slack/smart-bot/utils/get_routines.rb
slack-smart-bot-1.7.0 lib/slack/smart-bot/utils/get_routines.rb
slack-smart-bot-1.6.8 lib/slack/smart-bot/utils/get_routines.rb
slack-smart-bot-1.6.7 lib/slack/smart-bot/utils/get_routines.rb
slack-smart-bot-1.6.6 lib/slack/smart-bot/utils/get_routines.rb
slack-smart-bot-1.6.5 lib/slack/smart-bot/utils/get_routines.rb
slack-smart-bot-1.6.4 lib/slack/smart-bot/utils/get_routines.rb
slack-smart-bot-1.6.3 lib/slack/smart-bot/utils/get_routines.rb
slack-smart-bot-1.6.2 lib/slack/smart-bot/utils/get_routines.rb
slack-smart-bot-1.6.1 lib/slack/smart-bot/utils/get_routines.rb
slack-smart-bot-1.6.0 lib/slack/smart-bot/utils/get_routines.rb
slack-smart-bot-1.5.1 lib/slack/smart-bot/utils/get_routines.rb
slack-smart-bot-1.5.0 lib/slack/smart-bot/utils/get_routines.rb
slack-smart-bot-1.4.3 lib/slack/smart-bot/utils/get_routines.rb
slack-smart-bot-1.4.2 lib/slack/smart-bot/utils/get_routines.rb