Skip to content
This repository was archived by the owner on Oct 9, 2025. It is now read-only.

Commit 90fbfa4

Browse files
committed
fix(leaderboard): make it less ugly (aaaa)
1 parent 78e4732 commit 90fbfa4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/utils/Leaderboard.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,17 +131,16 @@ export async function formatServerLeaderboard(
131131
const guild = (await client.fetchGuild(serverId).catch(() => null)) ?? { name: 'Unknown' };
132132

133133
// Limit the server name length for table formatting.
134-
const serverName = guild.name.length > 20 ? `${guild.name.slice(0, 17)}...` : guild.name;
135134
const serverData = inviteLinks.find((link) => link.id === serverId && Boolean(link.inviteCode));
136135
const inviteCode =
137136
serverData?.inviteCode ?? ('vanityURLCode' in guild ? guild.vanityURLCode : null);
138-
const invite = inviteCode ? `([join](https://discord.gg/${inviteCode}))` : '';
137+
const invite = inviteCode ? `([join server](https://discord.gg/${inviteCode}))` : '';
139138

140139
// Use the helper function to get the rank display value.
141140
const rankDisplay = getRankDisplay(rank, getEmoji('dot', client));
142141

143142
// Pad each column for alignment.
144-
output += `${rankDisplay} \` ${score.toString()} \` - ${serverName} ${invite}\n`;
143+
output += `${rankDisplay} \` ${score.toString()} msgs \` - ${guild.name} ${invite}\n`;
145144
}
146145

147146
return output;

0 commit comments

Comments
 (0)