Skip to content

Instantly share code, notes, and snippets.

@morygonzalez
Forked from siyo/haiku_tweet.rb
Created October 12, 2011 14:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save morygonzalez/1281316 to your computer and use it in GitHub Desktop.
Save morygonzalez/1281316 to your computer and use it in GitHub Desktop.
俳句が読みたくなった時用earthquake plugin
# -*- coding: utf-8 -*-
# haiku tweet / earthquake plugin
#
Earthquake.init do
command :haiku do |m|
input(":update #{m[1]} ここで一句、 %s" % [open("http://haiku.jgate.de/"){|f| f.read}])
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment