Skip to content

Instantly share code, notes, and snippets.

@no6v
Created April 28, 2012 07:59
Show Gist options
  • Save no6v/2516998 to your computer and use it in GitHub Desktop.
Save no6v/2516998 to your computer and use it in GitHub Desktop.
Earthquake.init do
command :sora do |m|
in_reply_to_status_id = m[1]
target = twitter.status(in_reply_to_status_id)
screen_name = target["user"]["screen_name"]
if confirm("sora reply to @#{screen_name}?")
async_e { twitter.update("@#{screen_name}", in_reply_to_status_id: in_reply_to_status_id) }
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment