jschan - Anonymous imageboard software. Classic look, modern features and feel. Works without JavaScript and supports Tor, I2P, Lokinet, etc.
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.
 
 
 
 
 

27 lines
520 B

'use strict';
process
.on('uncaughtException', console.error)
.on('unhandledRejection', console.error);
const Mongo = require(__dirname+'/../db/db.js');
(async () => {
await Mongo.connect();
await Mongo.checkVersion();
//start all the scheduled tasks
require(__dirname+'/tasks/index.js');
//update board stats and homepage task, use cron and bull for proper timing
require(__dirname+'/../queue.js').push({
'task': 'updateStats',
'options': {}
}, {
'repeat': {
'cron': '0 * * * *'
}
});
})();