Skip to content

Commit

Permalink
Adding cron jobs that will run at the same time under a single job
Browse files Browse the repository at this point in the history
  • Loading branch information
chimpdev committed May 6, 2024
1 parent f661595 commit c29eb22
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server/src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,10 @@ module.exports = class Client {
if (options.startup.listenCrons) {
new CronJob('0 * * * *', this.checkVoiceActivity, null, true, 'Europe/Istanbul');
new CronJob('59 23 28-31 * *', this.saveMonthlyVotes, null, true, 'Europe/Istanbul');
new CronJob('0 0 * * *', this.updateClientActivity, null, true, 'Europe/Istanbul');
new CronJob('0 0 * * *', this.checkVoteReminderMetadatas, null, true, 'Europe/Istanbul');
new CronJob('0 0 * * *', () => {
this.checkReminerMetadatas();
this.checkQuittedBots();
}, null, true, 'Europe/Istanbul');
}
});
}
Expand Down

0 comments on commit c29eb22

Please sign in to comment.