Module: Chatterbot::Followers
- Included in:
- Bot
- Defined in:
- lib/chatterbot/followers.rb
Overview
methods related to following other users
Instance Method Summary collapse
-
#follow(u) ⇒ Object
follow a user.
-
#followers(opts = {}) ⇒ Object
return a collection of the users followers.
Instance Method Details
#follow(u) ⇒ Object
follow a user
21 22 23 24 |
# File 'lib/chatterbot/followers.rb', line 21 def follow(u) return unless require_login 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 require_login client.followers(opts).to_a end |