From 6ee66c383a392eceffc176d37693980a2b0b6e69 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Thu, 23 Mar 2017 01:02:54 +0000 Subject: [PATCH] CONSOLE.LOG ALL THE THINGS --- commands/search/google.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/commands/search/google.js b/commands/search/google.js index 91316c60..2e8268d0 100644 --- a/commands/search/google.js +++ b/commands/search/google.js @@ -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!'); }); }