From 7afd32254545d00e5c46ecee5634250864ec7a18 Mon Sep 17 00:00:00 2001 From: Louis Mazin Date: Thu, 16 Apr 2026 00:59:54 +0200 Subject: [PATCH] test --- index.js | 2 +- src/pterodactyl/displayer.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 3581486..37e81df 100644 --- a/index.js +++ b/index.js @@ -46,7 +46,7 @@ for (const folder of commandFolders) { } } -client.once('ready', async () => { +client.once('clientReady', async () => { client.user.setPresence({ activities: [{ name: 'ta mère.', type: 'WATCHING' }], status: 'online' }); console.log('Bot started !'); diff --git a/src/pterodactyl/displayer.js b/src/pterodactyl/displayer.js index 33d1abe..6accc7e 100644 --- a/src/pterodactyl/displayer.js +++ b/src/pterodactyl/displayer.js @@ -5,7 +5,7 @@ let pinboardCursor = 0; const parsePinboardImageUrls = () => { const raw = process.env.PINBOARD_IMAGE_URLS; console.log(`🔍 URLs brutes du pinboard: ${raw}`); - SlashCommandRoleOption.log(raw.split(',')); + console.log(raw.split(',')); return raw.split(',').map(url => url.trim()).filter(url => url.length > 0); }; @@ -71,7 +71,7 @@ const getMinecraftStatus = async () => { const buildPanelEmbed = (status) => { const stateText = status.online ? "🟢 En ligne" : "🔴 Hors ligne"; const playersText = `${status.playersOnline}/${status.playersMax}`; - const playersListText = status.playerList.length > 0 ? status.playerList.array.map(element => element.name).join(", ") : "Aucun joueur connecte"; + const playersListText = status.playerList.length > 0 ? status.playerList.map(element => element.name).join(", ") : "Aucun joueur connecte"; const message = new EmbedBuilder() .setColor('#0099ff') .setDescription('# Informations sur le Serveur \n\n## :wireless: IP :\n### goofymon.louismazin.ovh\n\n## :repeat: État :\n### '+stateText+'\n\n## :busts_in_silhouette: Joueurs :\n### '+playersText+'\n\n## :video_game: Version :\n### '+status.version+'\n\n## :bust_in_silhouette: Liste des joueurs :\n### '+playersListText);