Fix bugs in various commands

This commit is contained in:
Dragon Fire
2020-11-07 10:59:00 -05:00
parent 5b5487674f
commit 14c36e5314
7 changed files with 23 additions and 19 deletions
+5
View File
@@ -42,6 +42,7 @@ module.exports = class HoroscopeCommand extends Command {
.setTitle(`Horoscope for ${firstUpperCase(sign)}...`)
.setURL(`https://astrology.tv/horoscope/signs/${sign}/`)
.setFooter('© Kelli Fox, The Astrologer')
.setThumbnail(this.getImageURL(sign))
.setTimestamp()
.setDescription(horoscope);
return msg.embed(embed);
@@ -55,4 +56,8 @@ module.exports = class HoroscopeCommand extends Command {
const $ = cheerio.load(text);
return $('div[class="ct-text-block day-tabs-content_horoscope"]').eq(1).text();
}
getImageURL(sign) {
return `https://astrology.tv/wp-content/uploads/2019/07/astrology_tv_${sign}_cover-768x768.jpg`;
}
};