Module: Chatterbot::Followers

Included in:
Bot
Defined in:
lib/chatterbot/followers.rb

Overview

methods related to following other users

Instance Method Summary collapse

Instance Method Details

#follow(u) ⇒ Object

follow a user

Parameters:

  • u

    a Twitter::User or user id



21
22
23
24
# File 'lib/chatterbot/followers.rb', line 21

def follow(u)
  return unless 
  client.follow(u)
end

#followers(opts = {}) ⇒ Object

TODO:

we should cache this locally

return a collection of the users followers



12
13
14
15
# File 'lib/chatterbot/followers.rb', line 12

def followers(opts={})
  return unless 
  client.followers(opts).to_a
end