bot/bot.go
Method Bot.handle
has 5 return statements (exceeds 4 allowed). Open
Open
func (b *Bot) handle(ctx context.Context, client service.ISlackClient, event slackevents.AppMentionEvent) *CommandError {
if tokens := largo.Tokenize(event.Text)[1:]; len(tokens) != 0 && tokens[0] == "help" {
return errwrap(b.Help(ctx, client, event), "builtin:help", event)
}
for _, cmd := range b.Commands {