Files
Thomas Lynch 961585dca5 "helpers" -> "lib
god help anybody who gets serious merge conflicts from this
close #434
2022-04-12 04:37:52 +10:00

16 lines
294 B
JavaScript

'use strict';
const redis = require(__dirname+'/../redis/redis.js')
, Mongo = require(__dirname+'/../../db/db.js');
const load = async (message) => {
module.exports.get = message || (await Mongo.getConfig());
};
redis.addCallback('config', load);
module.exports = {
get: null,
load,
};