class SlackSmartBot

  def get_channels_name_and_id
    @channels_list = get_channels()
    @channels_id = Hash.new()
    @channels_name = Hash.new()
    @channels_creator = Hash.new()
    @channels_list.each do |ch|
      unless ch.is_archived
        @channels_id[ch.name] = ch.id
        @channels_name[ch.id] = ch.name
         = find_user(ch.creator)
        @channels_creator[ch.id] = "#{.team_id}_#{.name}" unless .nil?
        @channels_creator[ch.name] = "#{.team_id}_#{.name}" unless .nil?
      end
    end
  end

end