Skip to content

Instantly share code, notes, and snippets.

@takkaw
Created December 21, 2011 14:36
Show Gist options
  • Select an option

  • Save takkaw/1506251 to your computer and use it in GitHub Desktop.

Select an option

Save takkaw/1506251 to your computer and use it in GitHub Desktop.
earthquake.gem amend plug_in
Earthquake.init do
command :amend do |m|
name = twitter.info["name"]
id = twitter.user_timeline(:screen_name => name).first["id_str"]
tweet = twitter.status(id)
async_e {
twitter.status_destroy(id)
twitter.update(m[1])
} if confirm("amend '#{m[1]}'")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment