code: func (mod *JabberBee) Run(eventChan chan bees.Event) {
  	if len(mod.server) == 0 {
  		return
  	}
  
  	options := xmpp.Options{
  		Host:     mod.server,
  		User:     mod.user,
  		Password: mod.password,
  		NoTLS:    mod.notls,
  		Debug:    false,
  	}
  
  	var err error
  	mod.client, err = options.NewClient()
  	if err != nil {
  		mod.LogErrorf("Connection error: %s", err)
  		return
  	}
  	defer mod.client.Close()
  
  	go func() {
  		for {
  			if err := mod.handleEvents(eventChan); err != nil {
  				return
  			}
  		}
  	}()
  
  	select {
  	case <-mod.SigChan:
  		return
  	}
  }
docs: // Run executes the Bee's event loop.