Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

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