plugins/urban.rb in cogbot-0.0.3 vs plugins/urban.rb in cogbot-0.1.0

- old
+ new

@@ -15,10 +15,10 @@ EOT def query(query) url = "http://www.urbandictionary.com/define.php?term=#{CGI.escape(query)}" begin - CGI.unescape_html Nokogiri::HTML(open(url)).at("div.definition").text.gsub(/\s+/, ' ') + CGI.unescape_html Nokogiri::HTML(open(url)).at("div.meaning").text.gsub(/\s+/, ' ') rescue "no result found" end end