From ddb8cf1d76077231e53189e90f874558c8100b5d Mon Sep 17 00:00:00 2001 From: guyreuven26-ship-it Date: Mon, 18 May 2026 17:45:06 +0300 Subject: [PATCH] Update bot.js --- src/config/bot.js | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/src/config/bot.js b/src/config/bot.js index 36e588cd4..dbe7ff37d 100644 --- a/src/config/bot.js +++ b/src/config/bot.js @@ -545,5 +545,39 @@ export function getRandomColor() { export default botConfig; +client.once("ready", async () => { + console.log(`Logged in as ${client.user.tag}`); + try { + const channel = await client.channels.fetch("1505785649226186873"); + + if (!channel) { + console.log("❌ לא נמצא ערוץ"); + return; + } + + const menu = new StringSelectMenuBuilder() + .setCustomId("shop_menu") + .setPlaceholder("🛒 בחר רול לקנייה") + .addOptions( + shopItems.map(item => ({ + label: `${item.label} - ${item.price} XP`, + value: item.value + })) + ); + + const row = new ActionRowBuilder().addComponents(menu); + + const embed = new EmbedBuilder() + .setTitle("🛒 XP SHOP") + .setDescription("בחר רול מהתפריט וקנה אותו עם XP") + .setColor("Gold"); + + await channel.send({ embeds: [embed], components: [row] }); + + console.log("✅ החנות נשלחה בהצלחה"); + } catch (err) { + console.log("❌ שגיאה בשליחת חנות:", err); + } +});