Skip to content

Instantly share code, notes, and snippets.

@AndrewVos
Created March 4, 2012 04:24
Show Gist options
  • Save AndrewVos/1970654 to your computer and use it in GitHub Desktop.
Save AndrewVos/1970654 to your computer and use it in GitHub Desktop.
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