Skip to content

Instantly share code, notes, and snippets.

@nbqx
Created July 28, 2011 04:58
Show Gist options
  • Save nbqx/1110991 to your computer and use it in GitHub Desktop.
Save nbqx/1110991 to your computer and use it in GitHub Desktop.
require 'open-uri'
Earthquake.init do
command :zalgo do |m|
tw = ""
txt = m[1]
open("http://zalgo-text.jgate.de/convert?q=#{URI.encode(txt)}&max=20") do |r|
tw = r.read
end
input(":update #{tw}")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment