diff --git a/commands/search/google.js b/commands/search/google.js index 514f2b4e..4f24f3fd 100644 --- a/commands/search/google.js +++ b/commands/search/google.js @@ -34,7 +34,7 @@ module.exports = class DefineCommand extends commando.Command { .get(`https://www.google.com/search?q=${thingToSearch}`); const $ = cheerio.load(response.text); let href = $('.r').first().find('a').first().attr('href'); - if (!href) return message.say(':x: Error! No Results Found!'); + if (!href) return searchMsg.edit(':x: Error! No Results Found!'); href = querystring.parse(href.replace('/url?', '')); return searchMsg.edit(href.q); }