From bf2b54e6ad8e565c3525cc2bed96da8bd7219495 Mon Sep 17 00:00:00 2001 From: SocksOnHead Date: Thu, 19 Oct 2023 01:54:04 +0200 Subject: [PATCH] Update bot.ts --- bot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.ts b/bot.ts index 25da71e..47197b9 100644 --- a/bot.ts +++ b/bot.ts @@ -165,7 +165,7 @@ function scheduleNextJoin(): void { const hours = Math.floor((randomInterval - minutes) / 60); schedule.gracefulShutdown().finally(() => { - const jobName = schedule.scheduleJob(`${Math.floor(minutes)} ${Math.floor(hours) == 0 ? '*' : Math.floor(hours) } * * *`, function(){ + const jobName = schedule.scheduleJob(`${minutes} ${hours == 0 ? '*' : hours } * * *`, function(){ joinRandomChannel(); }).name;