From c1e81fccf2d5b93f5b00d2c52d276a3813c86b55 Mon Sep 17 00:00:00 2001 From: kamexy Date: Wed, 1 Nov 2023 17:20:30 +0900 Subject: [PATCH] Fix to work "help" option. The strings might not be find with T("help"). --- server/command.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/command.go b/server/command.go index 3c3e869..c99805d 100755 --- a/server/command.go +++ b/server/command.go @@ -39,7 +39,7 @@ func (p *Plugin) ExecuteCommand(c *plugin.Context, args *model.CommandArgs) (*mo return &model.CommandResponse{}, nil } - if strings.HasSuffix(command, T("help")) { + if strings.HasSuffix(command, "help") { post := model.Post{ ChannelId: args.ChannelId, UserId: p.botUserId, @@ -49,7 +49,7 @@ func (p *Plugin) ExecuteCommand(c *plugin.Context, args *model.CommandArgs) (*mo return &model.CommandResponse{}, nil } - if strings.HasSuffix(command, T("list")) { + if strings.HasSuffix(command, "list") { p.API.SendEphemeralPost(user.Id, p.ListReminders(user, args.ChannelId)) return &model.CommandResponse{}, nil }