Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Earthquake.init do
command %r|^:hisaichi\s+(.+)$|, :as => :hisaichi do |m|
str = URI.escape(m[1])
response = Net::HTTP.get('www11268ue.sakura.ne.jp','/generator?text=' + str, 5001)
strings = JSON.parse(response)["text"]
input(strings)
end
end
# http://hisaichi5518.hatenablog.jp/entry/2013/07/09/111503
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.