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