From f2f6a4b5839d2f24fe1f6cd1c2d8200c77a8b91a Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Thu, 23 Mar 2017 00:59:30 +0000 Subject: [PATCH] Google stop pls --- commands/search/google.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/search/google.js b/commands/search/google.js index 155c0499..91316c60 100644 --- a/commands/search/google.js +++ b/commands/search/google.js @@ -32,7 +32,7 @@ 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); + message.channel.send(href.q).catch(console.error); }).catch(function (err) { console.log(err); message.channel.send(':x: Error! No Results Found!');