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.4.1 lib/slack/smart-bot/utils/update_routines.rb
slack-smart-bot-1.4.0 lib/slack/smart-bot/utils/update_routines.rb