Fix Google?

This commit is contained in:
Daniel Odendahl Jr
2017-03-23 00:32:03 +00:00
parent 1bde1fa5eb
commit f5691328ba
+1 -1
View File
@@ -31,7 +31,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.edit(href.q);
message.channel.send(href.q);
}).catch(function (err) {
message.channel.send(':x: Error! No Results Found!');
});