Created
September 23, 2012 17:31
-
-
Save techmaniack/3772419 to your computer and use it in GitHub Desktop.
Selective tweets post
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pushed_tweets=[] | |
while true | |
Twitter.user_timeline("techmaniack").each do |item| | |
if !pushed_tweets.include?item.id | |
me.feed!(:message => item.text) if item.text.include?"#fb" | |
puts "POSTING TWEET" | |
puts item.text | |
pushed_tweets << item.id | |
else | |
puts "NOT POSTING" | |
puts item.text | |
end | |
end | |
#pushed_tweet_id = temp | |
sleep(60) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment