lib/streambot.rb in streambot-0.2.4 vs lib/streambot.rb in streambot-0.2.5
- old
+ new
@@ -19,11 +19,11 @@
# start the bot
def start
# starting to track the keywords via tweetstream
@stream.track(@keywords) do |status|
# if status.user is NOT in blacklist then retweet it
- if !@blacklist.include?(status.user)
- #puts "#{status.text}"
+ if !@blacklist.include?(status.user.screen_name)
+ #puts "#{status.text} ##{status.id}"
@retweet.retweet(status.id)
end
end
end