Mohammed Sohail
2a42a5882c
updates: * add tests for most modules * add confini for loading configs * add contact spoof check * add optional webhook support * add error handling * add pino logger * update keyboard regex
13 lines
294 B
JavaScript
13 lines
294 B
JavaScript
const path = require("path");
|
|
const Confini = require("confini").Config;
|
|
|
|
const log = require("./log");
|
|
|
|
const config = new Confini(path.join(__dirname, "../config"));
|
|
|
|
config.process();
|
|
config.override(process.env, "CIC_");
|
|
log.debug(config.store, "confini loaded");
|
|
|
|
module.exports = config;
|