Sha256: ad093e355e6b9973ecdc2833f600ed81a48a59447ad8c5ef106c0976213b5f69

Contents?: true

Size: 448 Bytes

Versions: 18

Compression:

Stored size: 448 Bytes

Contents

class SlackSmartBot

  def get_shares()
    channel = @channels_name[@channel_id]
    if File.exist?("#{config.path}/shares/#{channel}.csv")
      "#{config.path}/shares/#{channel}.csv"
      t = CSV.table("#{config.path}/shares/#{channel}.csv", headers: ['share_id', 'user_deleted', 'user_created', 'date', 'time', 'type', 'to_channel', 'condition'])
      t.delete_if {|row| row[:user_deleted] != ''}
      @shares[channel] = t
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

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