From 3eb1154f5b6b9a338ae519dd4134b66e55faa732 Mon Sep 17 00:00:00 2001 From: filesite Date: Sun, 14 Apr 2024 18:54:01 +0800 Subject: [PATCH] send heart beat when bot start --- spider.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/spider.mjs b/spider.mjs index b63e4bd..e86b16e 100644 --- a/spider.mjs +++ b/spider.mjs @@ -114,6 +114,7 @@ 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()); })().catch(error => { console.error("Spider error got:\n%s", error);