format player count on server embed
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 1m4s
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 1m4s
This commit is contained in:
parent
2a080e28a1
commit
6e46d613a4
@ -5,6 +5,7 @@ import { ServerView } from "@/app/components/server/server-view";
|
||||
import { ContextMenu, ContextMenuContent, ContextMenuItem, ContextMenuTrigger } from "@/app/components/ui/context-menu";
|
||||
import { Colors } from "@/common/colors";
|
||||
import { generateEmbed } from "@/common/embed";
|
||||
import { formatNumber } from "@/common/number-utils";
|
||||
import { isValidServer } from "@/common/server";
|
||||
import { capitalizeFirstLetter } from "@/common/string-utils";
|
||||
import config from "@root/config.json";
|
||||
@ -82,7 +83,7 @@ export async function generateMetadata({ params: { platform, hostname } }: Param
|
||||
|
||||
const favicon = getFavicon(platform, server);
|
||||
|
||||
let description = `There is ${players.online}/${players.max} players connected!\n\n`;
|
||||
let description = `There is ${formatNumber(players.online)}/${formatNumber(players.max)} players connected!\n\n`;
|
||||
description += "Click to view more information about the server.";
|
||||
|
||||
return generateEmbed({
|
||||
|
Loading…
x
Reference in New Issue
Block a user