Add an sjp plugin.
parent
a50115b67f
commit
694de5fdb7
|
@ -0,0 +1,7 @@
|
||||||
|
require 'net/http'
|
||||||
|
require 'nokogiri'
|
||||||
|
|
||||||
|
Client.register_command("sjp") { |args|
|
||||||
|
doc = Nokogiri::HTML(Net::HTTP.get(URI(Config[:commands][:sjp][:url] + args[0])))
|
||||||
|
doc.xpath('//ul[@id="listahasel"]/li/div/div').inner_text
|
||||||
|
}
|
Loading…
Reference in New Issue