test
This commit is contained in:
parent
c55724f4fc
commit
7afd322545
2
index.js
2
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' });
|
client.user.setPresence({ activities: [{ name: 'ta mère.', type: 'WATCHING' }], status: 'online' });
|
||||||
console.log('Bot started !');
|
console.log('Bot started !');
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@ let pinboardCursor = 0;
|
|||||||
const parsePinboardImageUrls = () => {
|
const parsePinboardImageUrls = () => {
|
||||||
const raw = process.env.PINBOARD_IMAGE_URLS;
|
const raw = process.env.PINBOARD_IMAGE_URLS;
|
||||||
console.log(`🔍 URLs brutes du pinboard: ${raw}`);
|
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);
|
return raw.split(',').map(url => url.trim()).filter(url => url.length > 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -71,7 +71,7 @@ const getMinecraftStatus = async () => {
|
|||||||
const buildPanelEmbed = (status) => {
|
const buildPanelEmbed = (status) => {
|
||||||
const stateText = status.online ? "🟢 En ligne" : "🔴 Hors ligne";
|
const stateText = status.online ? "🟢 En ligne" : "🔴 Hors ligne";
|
||||||
const playersText = `${status.playersOnline}/${status.playersMax}`;
|
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()
|
const message = new EmbedBuilder()
|
||||||
.setColor('#0099ff')
|
.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);
|
.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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user