Skip to content

Commit

Permalink
Log the Zulip name of the odd-one-out (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
cceckman authored Aug 29, 2024
1 parent d9fcb45 commit d9d7f5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pairing_bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,11 @@ func (pl *PairingLogic) match(w http.ResponseWriter, r *http.Request) {
if len(recursersList)%2 != 0 {
recurser := recursersList[len(recursersList)-1]
recursersList = recursersList[:len(recursersList)-1]
log.Println("Someone was the odd-one-out today")
log.Printf("%s was the odd-one-out today", recurser.name)

err := pl.un.sendUserMessage(ctx, botPassword, []int64{recurser.id}, oddOneOutMessage)
if err != nil {
log.Printf("Error when trying to send oddOneOut message to %s: %s\n", recurser.email, err)
log.Printf("Error when trying to send oddOneOut message to %s: %s\n", recurser.name, err)
}
}

Expand Down

0 comments on commit d9d7f5a

Please sign in to comment.