Skip to content

Instantly share code, notes, and snippets.

@kaosf
Created July 19, 2013 09:12
Show Gist options
  • Save kaosf/6037824 to your computer and use it in GitHub Desktop.
Save kaosf/6037824 to your computer and use it in GitHub Desktop.
Earthquake.init do
command :fr do |m|
target = twitter.status(m[1])
if confirm("fav & RT '@#{target["user"]["screen_name"]}: #{target["text"]}'")
async_e {
twitter.retweet(m[1])
twitter.favorite(m[1])
}
end
end
help :fr, 'fav & RT', 'favorite and retweet'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment