Sha256: 8bf4a6669058694ad6944830f6bb864917d3c647ca60005bc0917dd13d72a8e7
Contents?: true
Size: 618 Bytes
Versions: 7
Compression:
Stored size: 618 Bytes
Contents
module Chatterbot # # handle checking for mentions of the bot module Reply # handle replies for the bot def replies(*args, &block) return unless require_login debug "check for replies since #{since_id_reply}" opts = { :since_id => since_id_reply, :count => 200 } results = client.mentions_timeline(opts) @current_tweet = nil results.each { |s| update_since_id_reply(s) if block_given? && valid_tweet?(s) @current_tweet = s yield s end } @current_tweet = nil end end end
Version data entries
7 entries across 7 versions & 1 rubygems