LotteryAutoScript/lib/data/config.js
2021-08-07 15:32:39 +08:00

21 lines
430 B
JavaScript

const { config_file } = require('../utils');
const my_config = require(config_file);
const config = {
...my_config["default_config"],
/**
* @param {string} n
*/
updata(n) {
const new_config = my_config[`config_${n}`];
if (new_config) {
Object.entries(new_config)
.forEach(([k, v]) => this[k] = v)
}
},
init () {
}
};
module.exports = config;