diff --git a/plugins/commands/bonjour.rb b/plugins/commands/bonjour.rb index ac15e8f..f242c57 100644 --- a/plugins/commands/bonjour.rb +++ b/plugins/commands/bonjour.rb @@ -3,5 +3,5 @@ require 'nokogiri' Client.register_command("bonjour") { |args| link = Config.lookup("commands::bonjour::url") + String(rand(1..2370)) - Config.lookup("commands::bonjour::message") + Nokogiri::HTML(Net::HTTP.get(URI(link))).xpath('//div[@class="photo post"]/img/@src').inner_text + Config.lookup("commands::bonjour::message") + Nokogiri::HTML(Net::HTTP.get(URI(link))).xpath('//div[@class="photo post"]//img/@src').inner_text }