mirror of
https://github.com/shanmiteko/LotteryAutoScript.git
synced 2026-06-07 21:01:03 +08:00
21 lines
430 B
JavaScript
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; |