-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
31 lines (26 loc) · 1.06 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
var path = require('path');
var setup = require(path.join(__dirname, 'setup'));
function core(opts) {
var core = {};
setup(opts);
core.bans = require(path.join(__dirname, 'bans'));
core.blacklist = require(path.join(__dirname, 'blacklist'));
core.configurations = require(path.join(__dirname, 'configurations'));
core.images = require(path.join(__dirname, 'images'));
core.moderators = require(path.join(__dirname, 'moderators'));
core.roles = require(path.join(__dirname, 'roles'));
core.polls = require(path.join(__dirname, 'polls'));
core.notifications = require(path.join(__dirname, 'notifications'));
core.moderationLogs = require(path.join(__dirname, 'moderation_logs'));
core.userNotes = require(path.join(__dirname, 'user_notes'));
core.helper = require(path.join(__dirname, 'helper'));
core.errors = require(path.join(__dirname, 'errors'));
var db = require(path.join(__dirname, 'db'));
core.db = db;
core.close = function() {
console.log('Closing db connection pool');
db.pool.end();
};
return core;
}
module.exports = core;