Skip to content

Commit

Permalink
expanded scoreboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Distortions81 committed Mar 20, 2024
1 parent 72de1bb commit ad30a69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/user/scoreBoard.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func Scoreboard(s *discordgo.Session, i *discordgo.InteractionCreate) {
scores := []scoreData{}
glob.PlayerListLock.RLock()
for _, p := range glob.PlayerList {
if p.Minutes > 4320 {
if p.Minutes >= 4320 {
scores = append(scores, scoreData{Name: p.Name, Score: p.Minutes})
}
}
Expand All @@ -49,7 +49,7 @@ func Scoreboard(s *discordgo.Session, i *discordgo.InteractionCreate) {
p := scores[x]

n, _ := durafmt.ParseString(fmt.Sprintf("%vm", p.Score))
timestr := n.Format(units)
timestr := n.LimitFirstN(2).Format(units)
buf = buf + fmt.Sprintf("#%2v: %24v: %-15v\n", count+1, p.Name, timestr)

count++
Expand Down

0 comments on commit ad30a69

Please sign in to comment.