Format bot accounts in leaderboard

This commit is contained in:
Trevor Slocum 2023-12-30 00:39:54 -08:00
parent 33a850b495
commit 62304c2736

View file

@ -634,6 +634,9 @@ func getLeaderboard(matchType int, multiPoint bool) (*leaderboardResult, error)
if err != nil {
continue
}
if strings.HasPrefix(entry.User, "bot_") {
entry.User = "BOT_" + entry.User[4:]
}
entry.Rating /= 100
result.Leaderboard = append(result.Leaderboard, entry)
}