Fix request message
This commit is contained in:
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 {
|
if i == 1 {
|
||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
|
if s == "is" {
|
||||||
|
return "are"
|
||||||
|
}
|
||||||
return s + "s"
|
return s + "s"
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user