From 16a395731f8eef2ddf3376480bf7ee7239c0cd1e Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 31 Jul 2018 13:40:01 -0400 Subject: [PATCH] Fix formatting in horoscope --- commands/events/horoscope.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/events/horoscope.js b/commands/events/horoscope.js index b150eb09..0cb87454 100644 --- a/commands/events/horoscope.js +++ b/commands/events/horoscope.js @@ -45,6 +45,7 @@ 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(); + return $('#today').find('p').text() + .split('Intensity: ')[0]; } };