Sha256: 210b95bd2428cb6d9a47d8e9c26787e36570750bfb0a9706c38cf28b730de260

Contents?: true

Size: 379 Bytes

Versions: 22

Compression:

Stored size: 379 Bytes

Contents

class SlackSmartBot

  def update_routines(channel = @channel_id)
    routines = {}
    file = File.open("#{config.path}/routines/routines_#{channel}.rb", "w")
    @routines.each do |k,v|
      routines[k]={}
      v.each do |kk,vv|
        routines[k][kk] = vv.dup
        routines[k][kk][:thread]=""
      end
    end
    file.write (routines.inspect)
    file.close
  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/update_routines.rb
slack-smart-bot-1.9.2 lib/slack/smart-bot/utils/update_routines.rb
slack-smart-bot-1.9.1 lib/slack/smart-bot/utils/update_routines.rb
slack-smart-bot-1.8.2 lib/slack/smart-bot/utils/update_routines.rb
slack-smart-bot-1.8.1 lib/slack/smart-bot/utils/update_routines.rb
slack-smart-bot-1.8.0 lib/slack/smart-bot/utils/update_routines.rb
slack-smart-bot-1.7.0 lib/slack/smart-bot/utils/update_routines.rb
slack-smart-bot-1.6.8 lib/slack/smart-bot/utils/update_routines.rb
slack-smart-bot-1.6.7 lib/slack/smart-bot/utils/update_routines.rb
slack-smart-bot-1.6.6 lib/slack/smart-bot/utils/update_routines.rb
slack-smart-bot-1.6.5 lib/slack/smart-bot/utils/update_routines.rb
slack-smart-bot-1.6.4 lib/slack/smart-bot/utils/update_routines.rb
slack-smart-bot-1.6.3 lib/slack/smart-bot/utils/update_routines.rb
slack-smart-bot-1.6.2 lib/slack/smart-bot/utils/update_routines.rb
slack-smart-bot-1.6.1 lib/slack/smart-bot/utils/update_routines.rb
slack-smart-bot-1.6.0 lib/slack/smart-bot/utils/update_routines.rb
slack-smart-bot-1.5.1 lib/slack/smart-bot/utils/update_routines.rb
slack-smart-bot-1.5.0 lib/slack/smart-bot/utils/update_routines.rb
slack-smart-bot-1.4.3 lib/slack/smart-bot/utils/update_routines.rb
slack-smart-bot-1.4.2 lib/slack/smart-bot/utils/update_routines.rb