test
This commit is contained in:
parent
8a5bb59b6d
commit
ad2f9e7e77
@ -305,7 +305,7 @@ const getMinecraftStatus = async () => {
|
||||
};
|
||||
};
|
||||
|
||||
const buildPanelEmbed = (status, thumbnailUrl = null) => {
|
||||
const buildPanelEmbed = (status, imageUrl = null) => {
|
||||
const stateText = status.online ? "🟢 En ligne" : "🔴 Hors ligne";
|
||||
const playersText = `${status.playersOnline}/${status.playersMax}`;
|
||||
const playersListText = status.playerList.length > 0 ? status.playerList.map(element => element.name).join(", ") : "Aucun joueur connecte";
|
||||
@ -313,8 +313,8 @@ const buildPanelEmbed = (status, thumbnailUrl = null) => {
|
||||
.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);
|
||||
|
||||
if (thumbnailUrl) {
|
||||
message.setThumbnail(thumbnailUrl);
|
||||
if (imageUrl) {
|
||||
message.setImage(imageUrl);
|
||||
}
|
||||
|
||||
return message;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user