Make Code Prettier

This commit is contained in:
Daniel Odendahl Jr
2017-05-04 02:40:56 +00:00
parent e5f93b63cb
commit cf87f126d6
71 changed files with 354 additions and 343 deletions
+2 -2
View File
@@ -29,10 +29,10 @@ module.exports = class GoogleCommand extends Command {
.get(`https://www.google.com/search?q=${query}`);
const $ = cheerio.load(text);
let href = $('.r').first().find('a').first().attr('href');
if (!href) throw new Error('No Results');
if(!href) throw new Error('No Results');
href = querystring.parse(href.replace('/url?', ''));
return message.edit(href.q);
} catch (err) {
} catch(err) {
return message.edit('No Results Found.');
}
}