    # File lib/plugins/defaults/standard_commands.rb, line 142
      def self.get_friends_or_followers(type, user_name, max)
        raise "type should be :friends or :followers" unless [:friends, :followers].include? type
        users = []
        cursor = -1
        begin
          tmp = Termtter::API::twitter.__send__(type, user_name, :cursor => cursor)
          cursor = tmp[:next_cursor]
          users += tmp[:users]
          puts "#{users.length}/#{max}" if max > 100
        rescue
          break
        end until (cursor.zero? or users.length > max)
        users.take(max)
      end