Module: Chatterbot::Followers

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

Instance Method Summary collapse

Instance Method Details

#follow(u) ⇒ Object

follow a user

Parameters:

  • u

    a Twitter::User or user id


17
18
19
20
# File 'lib/chatterbot/followers.rb', line 17

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


8
9
10
11
# File 'lib/chatterbot/followers.rb', line 8

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