This commit is contained in:
Robert Gerus 2014-04-27 14:09:36 +02:00
parent 8987a71513
commit db6b4fd20e

View file

@ -5,6 +5,7 @@ Client.register_command("cycki") { |args|
link = ""
begin
link = Nokogiri::HTML(Net::HTTP.get(URI(Config[:commands][:cycki][:url]))).xpath('//img/@src').inner_text.gsub("_preview", "")
puts link
end while link !~ /http/
Config[:commands][:cycki][:message] + link
}