From faf64a8bf9767dc33adeca35688abdade2f411b5 Mon Sep 17 00:00:00 2001 From: Dustin Pianalto Date: Mon, 22 Feb 2021 22:03:06 -0900 Subject: [PATCH] Add message to end of list with count --- internal/exts/requests/requests.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/exts/requests/requests.go b/internal/exts/requests/requests.go index 1032461..c28f267 100644 --- a/internal/exts/requests/requests.go +++ b/internal/exts/requests/requests.go @@ -9,6 +9,7 @@ import ( "github.com/dustinpianalto/disgoman" "github.com/dustinpianalto/geeksbot" "github.com/dustinpianalto/geeksbot/internal/discord_utils" + "github.com/dustinpianalto/geeksbot/internal/utils" "github.com/dustinpianalto/geeksbot/pkg/services" ) @@ -247,4 +248,6 @@ func listCommandFunc(ctx disgoman.Context, args []string) { channelName, )) } + + _, _ = ctx.Send(fmt.Sprintf("There are currently %d open %s", len(requests), utils.PluralizeString("request", len(requests)))) }