Add help command

master
Hanzei 2020-03-09 14:05:31 +01:00
parent 747f282b33
commit c3d10f1d6e
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ func (p *Plugin) ServeHTTP(c *plugin.Context, w http.ResponseWriter, r *http.Req
func (p *Plugin) ExecuteCommand(c *plugin.Context, args *model.CommandArgs) (*model.CommandResponse, *model.AppError) {
input := strings.TrimSpace(strings.TrimPrefix(args.Command, "/meme"))
if input == "" {
if input == "" || input == "help" {
var availableMemes []string
for name, metadata := range memelibrary.Memes() {
availableMemes = append(availableMemes, name)