Update bot.ts

This commit is contained in:
2023-10-19 01:54:04 +02:00
committed by GitHub
parent cd49809ff1
commit bf2b54e6ad

2
bot.ts
View File

@@ -165,7 +165,7 @@ function scheduleNextJoin(): void {
const hours = Math.floor((randomInterval - minutes) / 60); const hours = Math.floor((randomInterval - minutes) / 60);
schedule.gracefulShutdown().finally(() => { 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(); joinRandomChannel();
}).name; }).name;