|
|
|
@ -116,8 +116,9 @@ import cron from 'node-cron';
@@ -116,8 +116,9 @@ import cron from 'node-cron';
|
|
|
|
|
console.log('HeroUnion bot heart beat result', res); |
|
|
|
|
}, {scheduled: false}); |
|
|
|
|
heroUnionHeartBeat.start(); |
|
|
|
|
heroBot.heartBeat('idle'); //马上上报一次
|
|
|
|
|
console.log('[%s] HeroUnion bot heart beat started.', common.getTimeString()); |
|
|
|
|
|
|
|
|
|
let heartBeatRes = await heroBot.heartBeat('idle'); //马上上报一次
|
|
|
|
|
console.log('[%s] HeroUnion bot heart beat started.', common.getTimeString(), heartBeatRes); |
|
|
|
|
})().catch(error => { |
|
|
|
|
console.error("Spider error got:\n%s", error); |
|
|
|
|
process.exit(1); |
|
|
|
|