Skip to content

Instantly share code, notes, and snippets.

@kenjiskywalker
Last active December 19, 2015 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kenjiskywalker/5955552 to your computer and use it in GitHub Desktop.
Save kenjiskywalker/5955552 to your computer and use it in GitHub Desktop.
なんていうかもう、████と█ッチ█ラブ██になりたい
Earthquake.init do
command %r|^:hisaichi\s+(.+)|, :as => :hisaichi do |m|
str = 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
# https://gist.github.com/kenjiskywalker/5955552
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment