This commit is contained in:
Louis Mazin 2025-12-09 22:14:14 +01:00
parent b1ac51aa65
commit f926d864e3

View File

@ -33,13 +33,19 @@ module.exports = {
for (const chunk of chunks) {
for (const link of chunk) {
const discordName = `<@${link.discord_id}>`;
const discordMention = `<@${link.discord_id}>`;
const lastConn = link.lastConnection
? `📅 Dernière connexion: <t:${Math.floor(new Date(link.lastConnection).getTime() / 1000)}:R>`
: '📅 Dernière connexion: Jamais vu';
embed.addFields({
name: `👤 ${discordName}`,
value: `🎮 Palworld: **${link.palworld_username}**\n🆔 Steam ID: \`${link.steam_id}\`\n🎯 Player ID: \`${link.player_id || 'N/A'}\`\n ${lastConn}\n📅 Lié le: ${new Date(link.linked_at).toLocaleDateString('fr-FR')}`,
name: '👤 Compte lié',
value: `${discordMention}
🎮 Palworld: **${link.palworld_username}**
🆔 Steam ID: \`${link.steam_id}\`
🎯 Player ID: \`${link.player_id || 'N/A'}\`
${lastConn}
📅 Lié le: ${new Date(link.linked_at).toLocaleDateString('fr-FR')}`,
inline: false
});
}