mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-10-01 23:58:36 -05:00
User profile results page
This commit is contained in:
@@ -9,3 +9,11 @@ export function discordFullName(
|
||||
export function makeTitle(title: string | string[]) {
|
||||
return `${Array.isArray(title) ? title.join(" | ") : title} | sendou.ink`;
|
||||
}
|
||||
|
||||
export function placementString(placement: number) {
|
||||
if (placement === 1) return "🥇";
|
||||
if (placement === 2) return "🥈";
|
||||
if (placement === 3) return "🥉";
|
||||
|
||||
return `${placement}th`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user