Skip to content

Commit

Permalink
chore: add ts data (#119)
Browse files Browse the repository at this point in the history
* chore: add ts data

* fix: logic
  • Loading branch information
imnaiyar authored Nov 7, 2024
1 parent 0aba59d commit 1416d59
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
4 changes: 3 additions & 1 deletion src/bot/buttons/spirits/spirit-common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down
16 changes: 9 additions & 7 deletions src/bot/libs/constants/spirits-datas/seasonal/15-aurora.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,19 @@ const data: Record<string, SpiritsData> = {
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",
Expand Down

0 comments on commit 1416d59

Please sign in to comment.