Created
March 4, 2012 04:24
-
-
Save AndrewVos/1970654 to your computer and use it in GitHub Desktop.
This file contains 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
task :default do | |
status = Twitter.search("\"your a \"", :rpp => 1, :result_type => "recent").first | |
puts "#{status.from_user}: #{status.text}" | |
puts "https://twitter.com/#!/#{status.from_user}/status/#{status.id}" | |
puts | |
update = Twitter.update("@#{status.from_user} I think you mean \"you're\"", :in_reply_to_status_id => status.id) | |
puts update.text | |
puts "https://twitter.com/#!/youreyoureyoure/status/#{update.id}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment