var cheerio = require('cheerio'),
    request = require('request');

module.exports.command = 'title';

function getSelector(url, selector, reply) {
  url = url.trim();
  if(!/^https?:\/\//.test(url)) {
    url = "http://" + remainder;
  }

  request(url, function(err, resp, html) {
    if(err) return reply(err);

    var res = cheerio(selector, html);
    console.log(res);
    reply(res.text().trim());

  });
}

module.exports.run_title = function(remainder, p, reply) {
  getSelector(remainder, 'title', reply);
};
module.exports.run_websel = function(r, p, reply) {
  getSelector(p[1], p[0], reply);
};

@@ -234,16 +234,68 @@
 r;%0A  %7D%0A%0A
+  var options = %7B%0A    url: url,%0A    jar: true%0A  %7D;%0A%0A
   reques
@@ -296,19 +296,23 @@
 request(
-url
+options
 , functi

Use cookies for requests in !title/!websel