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