code: func hapiRemoteTokensSubmit(w http.ResponseWriter, r *http.Request) {
  	if os.Getenv("ABOT_ENV") != "test" {
  		if !isAdmin(w, r) {
  			return
  		}
  		if !isLoggedIn(w, r) {
  			return
  		}
  		if !isValidCSRF(w, r) {
  			return
  		}
  	}
  	var req struct {
  		Token     string
  		PluginIDs dt.Uint64Slice
  	}
  	if err := json.NewDecoder(r.Body).Decode(&req); err != nil {
  		writeErrorBadRequest(w, err)
  		return
  	}
  	cookie, err := r.Cookie("email")
  	if err != nil {
  		writeErrorBadRequest(w, err)
  		return
  	}
  	q := `INSERT INTO remotetokens (token, email, pluginids)
  	      VALUES ($1, $2, $3)`
  	_, err = db.Exec(q, req.Token, cookie.Value, req.PluginIDs)
  	if err != nil {
  		if err.Error() == `pq: duplicate key value violates unique constraint "remotetokens_token_key"` {
  			writeErrorBadRequest(w, errors.New("Token has already been added."))
  			return
  		}
  		writeErrorInternal(w, err)
  		return
  	}
  	w.WriteHeader(http.StatusOK)
  }
docs: // hapiRemoteTokensSubmit adds a remote token for modifying ITSABOT_URL's
  // plugin training data.