diff --git a/GoBot/discord/backend/trust.go b/GoBot/discord/backend/trust.go index ab533fe..4545390 100644 --- a/GoBot/discord/backend/trust.go +++ b/GoBot/discord/backend/trust.go @@ -34,7 +34,9 @@ func GetTrust(s *discordgo.Session, discordID string) (float64, error) { if err != nil { return 0.0, err } - votes = append(votes, 3) + if len(votes) == 0 { + return 0.0, nil + } var total float64 for _, v := range votes { total += float64(v)