From 1416d5944709075bf8d89ea2bffa762e1b070a68 Mon Sep 17 00:00:00 2001 From: Naiyar <137700126+imnaiyar@users.noreply.github.com> Date: Thu, 7 Nov 2024 20:30:58 +0530 Subject: [PATCH] chore: add ts data (#119) * chore: add ts data * fix: logic --- src/bot/buttons/spirits/spirit-common.ts | 4 +++- .../spirits-datas/seasonal/15-aurora.ts | 16 +++++++++------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/bot/buttons/spirits/spirit-common.ts b/src/bot/buttons/spirits/spirit-common.ts index 5971ef23..4a56c932 100644 --- a/src/bot/buttons/spirits/spirit-common.ts +++ b/src/bot/buttons/spirits/spirit-common.ts @@ -48,7 +48,9 @@ export default { value: data.location?.description || " ", }, ); - embed.setImage(client.config.CDN_URL + "/" + (type === "tree" ? data.tree!.image : data.location!.image)); + let url = type === "tree" ? data.tree!.image : data.location!.image; + if (!url!.startsWith("https://")) url = client.config.CDN_URL + "/" + url; + embed.setImage(url); await interaction.editReply({ embeds: [embed], components: [...(index === 1 ? [message.components[0]] : []), newRow], diff --git a/src/bot/libs/constants/spirits-datas/seasonal/15-aurora.ts b/src/bot/libs/constants/spirits-datas/seasonal/15-aurora.ts index 41318835..9da504f9 100644 --- a/src/bot/libs/constants/spirits-datas/seasonal/15-aurora.ts +++ b/src/bot/libs/constants/spirits-datas/seasonal/15-aurora.ts @@ -9,17 +9,19 @@ const data: Record = { season: "Aurora", ts: { eligible: true, - returned: false, - dates: [], + returned: true, + dates: ["November 07, 2024 (#126)"], }, tree: { - by: "Clement", - total: " ", - image: "Warrior_of_Love_Seasonal_Chart_Clement.jpg", + by: "Alvenoir", + total: "178 :RegularCandle: 13 :RegularHeart: 2 :AC:", + image: + "https://cdn.discordapp.com/attachments/867638574571323424/1304094797392384000/Image_7-2.jpg?ex=672e246c&is=672cd2ec&hm=d7f2b0bf25fbf4afe49f90cd0ccece68c133f751c27b8ee495005f0088f1f16a&", }, location: { - by: "Zed", - image: "AURORA_Location_Zed.png", + by: "io (sky.io)", + image: + "https://cdn.discordapp.com/attachments/867638574571323424/1304097329762013204/WoL_TS_Template.png?ex=672e26c8&is=672cd548&hm=424ef6510f6b3ad44d7b12ad82fb02b1a94dfc8db99b4080848e9c8a28b0a0de&", }, expression: { type: "Emote",