Sha256: d33ae9c171c99cd6b84884d351db1347c78b3f74f78e0245b70cb1fb76b66663

Contents?: true

Size: 469 Bytes

Versions: 7

Compression:

Stored size: 469 Bytes

Contents

module Chatterbot

  #
  # methods related to following other users
  #
  module Followers
    
    #
    # return a collection of the users followers
    # @todo we should cache this locally
    #
    def followers(opts={})
      return unless require_login
      client.followers(opts).to_a
    end

    #
    # follow a user
    #
    # @param u a Twitter::User or user id
    def follow(u)
      return unless require_login
      client.follow(u)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
chatterbot-2.2.0 lib/chatterbot/followers.rb
chatterbot-2.1.0 lib/chatterbot/followers.rb
chatterbot-2.0.5 lib/chatterbot/followers.rb
chatterbot-2.0.4 lib/chatterbot/followers.rb
chatterbot-2.0.3 lib/chatterbot/followers.rb
chatterbot-2.0.2 lib/chatterbot/followers.rb
chatterbot-2.0.0.pre lib/chatterbot/followers.rb