Fix horoscope

This commit is contained in:
xiaobotdev
2026-04-03 19:22:11 -04:00
parent 7c04e2fdfe
commit 5747a60745
2 changed files with 17 additions and 17 deletions
+6 -6
View File
@@ -18,7 +18,7 @@ module.exports = class HoroscopeCommand extends Command {
name: 'astrology.TV', name: 'astrology.TV',
url: 'https://astrology.tv/', url: 'https://astrology.tv/',
reason: 'Horoscope Data', reason: 'Horoscope Data',
reasonURL: 'https://astrology.tv/horoscope/daily/' reasonURL: 'https://astrology.tv/horoscope/'
} }
], ],
args: [ args: [
@@ -37,8 +37,8 @@ module.exports = class HoroscopeCommand extends Command {
const embed = new EmbedBuilder() const embed = new EmbedBuilder()
.setColor(0x9797FF) .setColor(0x9797FF)
.setTitle(`Horoscope for ${firstUpperCase(sign)}...`) .setTitle(`Horoscope for ${firstUpperCase(sign)}...`)
.setURL(`https://astrology.tv/horoscope/signs/${sign}/`) .setURL(`https://astrology.tv/horoscope/daily/${sign}/`)
.setFooter({ text: Kelli Fox, The Astrologer' }) .setFooter({ text: 2026 AstrologyTV. All rights reserved.' })
.setThumbnail(this.getImageURL(sign)) .setThumbnail(this.getImageURL(sign))
.setTimestamp() .setTimestamp()
.setDescription(horoscope); .setDescription(horoscope);
@@ -46,12 +46,12 @@ module.exports = class HoroscopeCommand extends Command {
} }
async fetchHoroscope(sign) { async fetchHoroscope(sign) {
const { text } = await request.get(`https://astrology.tv/horoscope/signs/${sign}/`); const { text } = await request.get(`https://astrology.tv/horoscope/daily/${sign}/`);
const $ = cheerio.load(text); const $ = cheerio.load(text);
return $('div[class="ct-text-block day-tabs-content_horoscope"]').eq(1).text(); return $('section[id="today"]').children().eq(1).text();
} }
getImageURL(sign) { getImageURL(sign) {
return `https://astrology.tv/wp-content/uploads/2019/07/astrology_tv_${sign}_cover-768x768.jpg`; return `https://astrology.tv/images/astrology_tv_${sign}_cover-480x480.jpg`;
} }
}; };
+11 -11
View File
@@ -1,6 +1,6 @@
{ {
"name": "xiao", "name": "xiao",
"version": "160.0.3", "version": "160.0.4",
"description": "Your personal server companion.", "description": "Your personal server companion.",
"main": "Xiao.js", "main": "Xiao.js",
"scripts": { "scripts": {
@@ -30,12 +30,12 @@
}, },
"dependencies": { "dependencies": {
"@discordjs/opus": "^0.10.0", "@discordjs/opus": "^0.10.0",
"@discordjs/voice": "^0.19.1", "@discordjs/voice": "^0.19.2",
"@dotenvx/dotenvx": "^1.54.1", "@dotenvx/dotenvx": "^1.59.1",
"@mediapipe/face_detection": "^0.4.1646425229", "@mediapipe/face_detection": "^0.4.1646425229",
"@napi-rs/canvas": "^0.1.96", "@napi-rs/canvas": "^0.1.97",
"@skyra/gifenc": "^1.0.1", "@skyra/gifenc": "^1.0.1",
"@snazzah/davey": "^0.1.10", "@snazzah/davey": "^0.1.11",
"@tensorflow-models/face-detection": "^1.0.3", "@tensorflow-models/face-detection": "^1.0.3",
"@tensorflow/tfjs-node": "^4.22.0", "@tensorflow/tfjs-node": "^4.22.0",
"@twemoji/parser": "^17.0.1", "@twemoji/parser": "^17.0.1",
@@ -48,14 +48,14 @@
"connect4-ai": "^0.1.3", "connect4-ai": "^0.1.3",
"custom-translate": "^2.2.9", "custom-translate": "^2.2.9",
"didyoumean2": "^7.0.4", "didyoumean2": "^7.0.4",
"discord.js": "^14.25.1", "discord.js": "^14.26.2",
"emoji-regex": "^10.6.0", "emoji-regex": "^10.6.0",
"fen-validator": "^2.0.1", "fen-validator": "^2.0.1",
"font-finder": "^1.1.0", "font-finder": "^1.1.0",
"gm": "^1.25.1", "gm": "^1.25.1",
"html-entities": "^2.6.0", "html-entities": "^2.6.0",
"image-to-ascii": "^3.3.0", "image-to-ascii": "^3.3.0",
"ioredis": "^5.10.0", "ioredis": "^5.10.1",
"js-chess-engine": "^2.4.6", "js-chess-engine": "^2.4.6",
"jszip": "^3.10.1", "jszip": "^3.10.1",
"kuroshiro": "^1.2.0", "kuroshiro": "^1.2.0",
@@ -64,7 +64,7 @@
"minimist": "^1.2.8", "minimist": "^1.2.8",
"moment": "^2.30.1", "moment": "^2.30.1",
"moment-duration-format": "^2.3.2", "moment-duration-format": "^2.3.2",
"moment-timezone": "^0.6.0", "moment-timezone": "^0.6.1",
"neopet-image-finder": "^5.0.3", "neopet-image-finder": "^5.0.3",
"node-superfetch": "^0.3.5", "node-superfetch": "^0.3.5",
"ntcjs": "^1.1.3", "ntcjs": "^1.1.3",
@@ -75,12 +75,12 @@
"sagiri": "^4.3.0", "sagiri": "^4.3.0",
"semver": "^7.7.4", "semver": "^7.7.4",
"sherlockjs": "^1.4.2", "sherlockjs": "^1.4.2",
"stackblur-canvas": "^3.0.0", "stackblur-canvas": "^3.0.1",
"stream-json": "^1.9.1", "stream-json": "^1.9.1",
"text-diff": "^1.0.1", "text-diff": "^1.0.1",
"tictactoe-minimax-ai": "github:marianoheller/tic-tac-toe-minimax", "tictactoe-minimax-ai": "github:marianoheller/tic-tac-toe-minimax",
"twitter-openapi-typescript": "^0.0.55", "twitter-openapi-typescript": "^0.0.55",
"user-agents": "^2.1.10", "user-agents": "^2.1.19",
"valid-url": "^1.0.9", "valid-url": "^1.0.9",
"wavefile": "^11.0.0", "wavefile": "^11.0.0",
"winston": "^3.19.0", "winston": "^3.19.0",
@@ -95,7 +95,7 @@
}, },
"devDependencies": { "devDependencies": {
"@eslint/js": "^10.0.1", "@eslint/js": "^10.0.1",
"eslint": "^10.0.3", "eslint": "^10.2.0",
"eslint-config-amber": "^2.0.5", "eslint-config-amber": "^2.0.5",
"eslint-plugin-jsonc": "^2.21.1", "eslint-plugin-jsonc": "^2.21.1",
"globals": "^17.4.0" "globals": "^17.4.0"