func (p *JitsiPlugin) OnActivate() error {
	if err := p.API.RegisterCommand(&model.Command{
		Trigger:          commandTrigger,
		AutoComplete:     true,
		AutoCompleteHint: "[roomname]",
		AutoCompleteDesc: "Create Jitsi Meeting.",
	}); err != nil {
		return errors.Wrapf(err, "failed to register %s command", commandTrigger)
	}
	return nil
}
OnActivate register the plugin command
package main
import (
	"fmt"
	"strings"
	"sync"
	"github.com/mattermost/mattermost-server/v5/model"
	"github.com/mattermost/mattermost-server/v5/plugin"
	"github.com/pkg/errors"
)
const (
	commandTrigger = "jitsi"
)
type JitsiPlugin struct {
	plugin.MattermostPlugin
	configurationLock sync.RWMutex
	configuration *configuration
}