mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-27 06:37:32 +02:00
Fix formatting in horoscope
This commit is contained in:
@@ -45,6 +45,7 @@ module.exports = class HoroscopeCommand extends Command {
|
|||||||
async fetchHoroscope(sign) {
|
async fetchHoroscope(sign) {
|
||||||
const { text } = await request.get(`https://new.theastrologer.com/${sign}/`);
|
const { text } = await request.get(`https://new.theastrologer.com/${sign}/`);
|
||||||
const $ = cheerio.load(text);
|
const $ = cheerio.load(text);
|
||||||
return $('#today').find('p').text();
|
return $('#today').find('p').text()
|
||||||
|
.split('Intensity: ')[0];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user