CONSOLE.LOG ALL THE THINGS

This commit is contained in:
Daniel Odendahl Jr
2017-03-23 01:02:54 +00:00
parent f2f6a4b583
commit 6ee66c383a
+5 -2
View File
@@ -32,9 +32,12 @@ module.exports = class DefineCommand extends commando.Command {
let href = $('.r').first().find('a').first().attr('href');
if (!href) return Promise.reject(new Error('NO RESULTS'));
href = querystring.parse(href.replace('/url?', ''));
message.channel.send(href.q).catch(console.error);
message.channel.send(href.q);
console.log(href.q);
console.log(href);
console.log(thingToSearch);
console.log(SEARCH_URL);
}).catch(function (err) {
console.log(err);
message.channel.send(':x: Error! No Results Found!');
});
}