Created
June 7, 2012 15:42
-
-
Save metalefty/2889522 to your computer and use it in GitHub Desktop.
auto_favorite earthquake.gem plugin.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
Earthquake.init do | |
output do |item| | |
next unless item['id'] | |
async_e { twitter.favorite item['id'] } if config[:auto_favorite] == true | |
end | |
end |
Earthquake.config[:auto_favorite] = true
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
⚡ :plugin_install http://gist.github.com/2889522
⚡ :config auto_favorite true