lib/streambot.rb in streambot-0.2.0 vs lib/streambot.rb in streambot-0.2.1

- old
+ new

@@ -1,8 +1,8 @@ require 'rubygems' require 'tweetstream' -require File.join(File.dirname(__FILE__), 'retweet') +require 'retweet' class StreamBot def initialize(auth, *keywords) @stream = TweetStream::Client.new(auth[:username],auth[:password]) @@ -10,10 +10,11 @@ @keywords=keywords.join(',') end def start @stream.track(@keywords) do |status| - @retweet.retweet!(status.id) + puts "#{status.text} - #{status.id}" + @retweet.retweet(status.id) end end def stop @stream.stop