mirror of https://gitgud.io/fatchan/jschan.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
368 B
16 lines
368 B
4 years ago
|
'use strict';
|
||
|
|
||
|
const { addCallback } = require(__dirname+'/redis.js');
|
||
|
|
||
|
let config = require(__dirname+'/configs/main.js');
|
||
|
|
||
|
const loadConfig = (message) => {
|
||
|
delete require.cache[__dirname+'/configs/main.js'];
|
||
|
config = /*message*/ require(__dirname+'/configs/main.js');
|
||
|
}
|
||
|
|
||
|
loadConfig();
|
||
|
addCallback('config', loadConfig);
|
||
|
|
||
|
module.exports = () => { return config };
|