Add message to end of list with count
Some checks are pending
CI / build (push) Waiting to run

This commit is contained in:
Dustin Pianalto 2021-02-22 22:03:06 -09:00
parent 2abe574977
commit faf64a8bf9

View File

@ -9,6 +9,7 @@ import (
"github.com/dustinpianalto/disgoman" "github.com/dustinpianalto/disgoman"
"github.com/dustinpianalto/geeksbot" "github.com/dustinpianalto/geeksbot"
"github.com/dustinpianalto/geeksbot/internal/discord_utils" "github.com/dustinpianalto/geeksbot/internal/discord_utils"
"github.com/dustinpianalto/geeksbot/internal/utils"
"github.com/dustinpianalto/geeksbot/pkg/services" "github.com/dustinpianalto/geeksbot/pkg/services"
) )
@ -247,4 +248,6 @@ func listCommandFunc(ctx disgoman.Context, args []string) {
channelName, channelName,
)) ))
} }
_, _ = ctx.Send(fmt.Sprintf("There are currently %d open %s", len(requests), utils.PluralizeString("request", len(requests))))
} }