master
Robert Gerus 2014-04-27 14:09:36 +02:00
parent 8987a71513
commit db6b4fd20e
1 changed files with 1 additions and 0 deletions

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
}