This is better

This commit is contained in:
Dragon Fire
2018-07-31 13:55:17 -04:00
parent 16a395731f
commit f7c46094fc
2 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -45,7 +45,6 @@ module.exports = class HoroscopeCommand extends Command {
async fetchHoroscope(sign) {
const { text } = await request.get(`https://new.theastrologer.com/${sign}/`);
const $ = cheerio.load(text);
return $('#today').find('p').text()
.split('Intensity: ')[0];
return $('#today').find('p').first().text();
}
};