Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
24aff1be72 | ||
|
|
b28beaba0c | ||
|
|
4f8aaff94a |
@@ -235,7 +235,7 @@ func listCommandFunc(ctx disgoman.Context, args []string) {
|
|||||||
|
|
||||||
_, _ = ctx.Send(fmt.Sprintf("```md\n"+
|
_, _ = ctx.Send(fmt.Sprintf("```md\n"+
|
||||||
"< Request ID Requested By >\n"+
|
"< Request ID Requested By >\n"+
|
||||||
"< %11s %-23s >\n"+
|
"< %-11d %23s >\n"+
|
||||||
"%s\n\n"+
|
"%s\n\n"+
|
||||||
"Comments: Not Implemented Yet\n"+
|
"Comments: Not Implemented Yet\n"+
|
||||||
"Requested At: %s\n"+
|
"Requested At: %s\n"+
|
||||||
@@ -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"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user