text: // Import Airtable API and config
  const Airtable = require('airtable');
  
  // debug switch
  const godmode = require('../godmode.json')
  let env
  if (godmode.godmode) env = godmode.config
  else env = process.env
  
  // Import RSVP base
  const base = new Airtable({apiKey: env.AIRTABLE_TOKEN}).base(env.BASE_ID);
  
  module.exports = async function (faction, location, agentname, operator) {
    // get agent record
    let agentsbase = await base(location).select({
      view: "Grid view",
      filterByFormula: `AND({阵营} = '${faction}', {特工代号} = '${agentname}')`
    }).firstPage()
    agentsbase.forEach(record => {
      if (record.get('特工代号') === agentname) {
        base(location).update(record.getId(), {
          "正在登记经验值": 2,
          "操作人": operator
        }, (err, record) => {
          if (err) throw err
        });
        return
      }
    })
  }
  