Skip to content

Instantly share code, notes, and snippets.

@jugyo
Created April 7, 2011 09:39
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jugyo/907422 to your computer and use it in GitHub Desktop.
earthquake foo plugin
# earthquake foo plugin
# everyone say 'foo'!
# require earthquake 0.6.5 or higher
Earthquake.init do
config[:foo] = true if config[:foo].nil?
if config[:foo]
output :tweet do |item|
next unless item["text"]
name = item["user"]["screen_name"]
puts "#{name.c(color_of(name))}: foo"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment