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 = 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
You can’t perform that action at this time.