parametrize it.
This commit is contained in:
parent
475bdd6f04
commit
05eee3ee63
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue