woo new tidy version

This commit is contained in:
Martin Donnelly 2017-09-08 10:49:24 +01:00
parent 5f73c46b74
commit 3661592158

12
app.js
View File

@ -2,7 +2,8 @@ const loader = require('./libs/loader');
const lot = require('./libs/lot');
const lotv2 = require('./libs/lotV2');
const pusher = require('./libs/pusher');
const log4js = require('log4js');
const logger = log4js.getLogger();
function run(data) {
@ -17,17 +18,20 @@ Other: ${v1.otherLine} stars: ${v1.otherStars}
`;
pusher.push(msg);
console.log(msg);
logger.debug(msg);
loader.save(data);
}
function go() {
logger.info('GO!');
loader.load(run);
}
cron.schedule('10 13 * * 2,5', function() {
cron.schedule('10 13 * * 2,5', () => {
go();
// console.log('tick');
return -1;
});
logger.info('Lot V3 started...');