parametrize it.

master
Robert Gerus 2014-03-09 16:27:08 +01:00
parent 475bdd6f04
commit 05eee3ee63
1 changed files with 1 additions and 1 deletions

View File

@ -3,5 +3,5 @@ require 'net/http'
require 'nokogiri'
Client.register_command("cycki") { |args|
Nokogiri::HTML(Net::HTTP.get(URI('http://oboobs.ru/random/'))).xpath('//img/@src').inner_text
Nokogiri::HTML(Net::HTTP.get(URI(Config[:commands][:cycki][:url]))).xpath('//img/@src').inner_text + Config[:commands][:at][:message]
}