From 8db649c2b9985cc92b6d789d041c0974c5eb945d Mon Sep 17 00:00:00 2001 From: filesite Date: Tue, 16 Apr 2024 18:21:07 +0800 Subject: [PATCH] log update --- spider.mjs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spider.mjs b/spider.mjs index e728214..9ffe3c9 100644 --- a/spider.mjs +++ b/spider.mjs @@ -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);