code: func (h *ScriptEventHandler) UpdateScripts(scripts []EventScript) {
  	h.scriptLock.Lock()
  	defer h.scriptLock.Unlock()
  	h.newScripts = scripts
  }
docs: // UpdateScripts is used to safely update the scripts we invoke in
  // a thread safe manner