Sha256: 3694fe26b03d138d852ac714d5c61ff6d79610a643aee3981e9c9303c80df8ed
Contents?: true
Size: 646 Bytes
Versions: 2
Compression:
Stored size: 646 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
chatterbot-2.0.3 | lib/chatterbot/home_timeline.rb |
chatterbot-2.0.2 | lib/chatterbot/home_timeline.rb |