Google stop pls

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