mirror of
https://github.com/Myxelium/RandomMemerBot.git
synced 2026-07-08 22:15:09 +00:00
Update bot.ts
This commit is contained in:
2
bot.ts
2
bot.ts
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user