Fix request message

development
DustyP 5 years ago
parent 4f8aaff94a
commit b28beaba0c

@ -249,5 +249,5 @@ func listCommandFunc(ctx disgoman.Context, args []string) {
))
}
_, _ = ctx.Send(fmt.Sprintf("There are currently %d open %s", len(requests), utils.PluralizeString("request", len(requests))))
_, _ = ctx.Send(fmt.Sprintf("There %s currently %d open %s", utils.PluralizeString("is", len(requests)), len(requests), utils.PluralizeString("request", len(requests))))
}

@ -17,5 +17,8 @@ func PluralizeString(s string, i int) string {
if i == 1 {
return s
}
if s == "is" {
return "are"
}
return s + "s"
}

Loading…
Cancel
Save