add stars and diff to embed
All checks were successful
deploy / deploy (push) Successful in 54s

This commit is contained in:
Lee 2023-10-28 18:15:46 +01:00
parent 416fd60984
commit 7745906875

@ -1,6 +1,7 @@
import Leaderboard from "@/components/leaderboard/Leaderboard";
import { formatNumber } from "@/utils/number";
import { ScoreSaberAPI } from "@/utils/scoresaber/api";
import { scoresaberDifficultyNumberToName } from "@/utils/songUtils";
import { formatTime } from "@/utils/timeUtils";
import { Metadata } from "next";
@ -29,6 +30,10 @@ export async function generateMetadata({
}).
Mapper: ${leaderboard.levelAuthorName}
Stars: ${leaderboard.stars}
Difficulty: ${scoresaberDifficultyNumberToName(
leaderboard.difficulty.difficulty,
)}
Total plays: ${formatNumber(leaderboard.plays)}
Created: ${formatTime(new Date(leaderboard.createdDate))}
`,