Skip to content

Instantly share code, notes, and snippets.

@techmaniack
Created September 23, 2012 17:31
Show Gist options
  • Save techmaniack/3772419 to your computer and use it in GitHub Desktop.
Save techmaniack/3772419 to your computer and use it in GitHub Desktop.
Selective tweets post
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