Some Changes

This commit is contained in:
Daniel Odendahl Jr
2017-04-03 20:51:12 +00:00
parent 06e1cd9c50
commit 06c3ca3b45
9 changed files with 9 additions and 56 deletions
-1
View File
@@ -37,7 +37,6 @@ module.exports = class GoogleCommand extends commando.Command {
});
const $ = cheerio.load(response.text);
let href = $('.r').first().find('a').first().attr('href');
//if (!href) return searchMsg.edit(':x: Error! No Results Found!');
href = querystring.parse(href.replace('/url?', ''));
return searchMsg.edit(href.q);
}