Sha256: e2be11298932225497cdd41ca72cf44fe3c0f7e2911e518ed123b1906ebc9b5c
Contents?: true
Size: 647 Bytes
Versions: 1
Compression:
Stored size: 647 Bytes
Contents
module Chatterbot # # methods for checking the bots timeline module HomeTimeline # handle the bots timeline def home_timeline(*args, &block) return unless require_login debug "check for home_timeline tweets since #{since_id}" opts = { :since_id => since_id_home_timeline, :count => 200 } results = client.home_timeline(opts) @current_tweet = nil results.each { |s| update_since_id_home_timeline(s) if block_given? && valid_tweet?(s) @current_tweet = s yield s end } @current_tweet = nil end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chatterbot-2.0.0.pre | lib/chatterbot/home_timeline.rb |