Skip to content

Commit 2546814

Browse files
committed
fix: discord sink float formatting
1 parent c637e48 commit 2546814

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ From source:
2323
```sh
2424
git clone https://github.com/frantjc/rvgl-utils
2525
cd rvgl-utils
26-
go install ./cmd/rvglsm
26+
make install
2727
```
2828

2929
## Use

sinks/discord/discord_sink.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ func (s *Sink) UpdateSession(ctx context.Context, session *rvglutils.Session, op
4646
scores := rvglutils.ScoreSession(session, o.ScoreSessionOpts)
4747

4848
for i, score := range scores {
49-
format := "%s: %d\n"
49+
format := "%s: %g\n"
5050

5151
if o.Final && i == 0 {
52-
format = "**WINNER! %s**: %d\n"
52+
format = "**WINNER! %s**: %g\n"
5353
}
5454

5555
if _, err := content.WriteString(fmt.Sprintf(format, score.Player, score.Points)); err != nil {

0 commit comments

Comments
 (0)