From 5747a607450e8e36fd7da15802a8805f8d8d6c2c Mon Sep 17 00:00:00 2001 From: xiaobotdev Date: Fri, 3 Apr 2026 19:22:11 -0400 Subject: [PATCH] Fix horoscope --- commands/events/horoscope.js | 12 ++++++------ package.json | 22 +++++++++++----------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/commands/events/horoscope.js b/commands/events/horoscope.js index 2dbbdb72..7839b892 100644 --- a/commands/events/horoscope.js +++ b/commands/events/horoscope.js @@ -18,7 +18,7 @@ module.exports = class HoroscopeCommand extends Command { name: 'astrology.TV', url: 'https://astrology.tv/', reason: 'Horoscope Data', - reasonURL: 'https://astrology.tv/horoscope/daily/' + reasonURL: 'https://astrology.tv/horoscope/' } ], args: [ @@ -37,8 +37,8 @@ module.exports = class HoroscopeCommand extends Command { const embed = new EmbedBuilder() .setColor(0x9797FF) .setTitle(`Horoscope for ${firstUpperCase(sign)}...`) - .setURL(`https://astrology.tv/horoscope/signs/${sign}/`) - .setFooter({ text: '© Kelli Fox, The Astrologer' }) + .setURL(`https://astrology.tv/horoscope/daily/${sign}/`) + .setFooter({ text: '© 2026 AstrologyTV. All rights reserved.' }) .setThumbnail(this.getImageURL(sign)) .setTimestamp() .setDescription(horoscope); @@ -46,12 +46,12 @@ module.exports = class HoroscopeCommand extends Command { } 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); - return $('div[class="ct-text-block day-tabs-content_horoscope"]').eq(1).text(); + return $('section[id="today"]').children().eq(1).text(); } 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`; } }; diff --git a/package.json b/package.json index 18180391..9d9090b6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "160.0.3", + "version": "160.0.4", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": { @@ -30,12 +30,12 @@ }, "dependencies": { "@discordjs/opus": "^0.10.0", - "@discordjs/voice": "^0.19.1", - "@dotenvx/dotenvx": "^1.54.1", + "@discordjs/voice": "^0.19.2", + "@dotenvx/dotenvx": "^1.59.1", "@mediapipe/face_detection": "^0.4.1646425229", - "@napi-rs/canvas": "^0.1.96", + "@napi-rs/canvas": "^0.1.97", "@skyra/gifenc": "^1.0.1", - "@snazzah/davey": "^0.1.10", + "@snazzah/davey": "^0.1.11", "@tensorflow-models/face-detection": "^1.0.3", "@tensorflow/tfjs-node": "^4.22.0", "@twemoji/parser": "^17.0.1", @@ -48,14 +48,14 @@ "connect4-ai": "^0.1.3", "custom-translate": "^2.2.9", "didyoumean2": "^7.0.4", - "discord.js": "^14.25.1", + "discord.js": "^14.26.2", "emoji-regex": "^10.6.0", "fen-validator": "^2.0.1", "font-finder": "^1.1.0", "gm": "^1.25.1", "html-entities": "^2.6.0", "image-to-ascii": "^3.3.0", - "ioredis": "^5.10.0", + "ioredis": "^5.10.1", "js-chess-engine": "^2.4.6", "jszip": "^3.10.1", "kuroshiro": "^1.2.0", @@ -64,7 +64,7 @@ "minimist": "^1.2.8", "moment": "^2.30.1", "moment-duration-format": "^2.3.2", - "moment-timezone": "^0.6.0", + "moment-timezone": "^0.6.1", "neopet-image-finder": "^5.0.3", "node-superfetch": "^0.3.5", "ntcjs": "^1.1.3", @@ -75,12 +75,12 @@ "sagiri": "^4.3.0", "semver": "^7.7.4", "sherlockjs": "^1.4.2", - "stackblur-canvas": "^3.0.0", + "stackblur-canvas": "^3.0.1", "stream-json": "^1.9.1", "text-diff": "^1.0.1", "tictactoe-minimax-ai": "github:marianoheller/tic-tac-toe-minimax", "twitter-openapi-typescript": "^0.0.55", - "user-agents": "^2.1.10", + "user-agents": "^2.1.19", "valid-url": "^1.0.9", "wavefile": "^11.0.0", "winston": "^3.19.0", @@ -95,7 +95,7 @@ }, "devDependencies": { "@eslint/js": "^10.0.1", - "eslint": "^10.0.3", + "eslint": "^10.2.0", "eslint-config-amber": "^2.0.5", "eslint-plugin-jsonc": "^2.21.1", "globals": "^17.4.0"