Skip to content

Commit

Permalink
feat(status): update cron time
Browse files Browse the repository at this point in the history
  • Loading branch information
fieztazica committed May 12, 2024
1 parent 935d514 commit ee5d2c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
import { Queue } from 'distube';
import { RandomLoadingMessage } from './constants';
import { schedule as cronSchedule } from 'node-cron';
import { Cron, } from '@sapphire/time-utilities';
import { Cron, predefined } from '@sapphire/time-utilities';

/**
* Picks a random item from an array
Expand Down Expand Up @@ -121,7 +121,7 @@ export function setupStatusChanger() {

client.user?.setActivity(getRandomActivity());

const cronTime = new Cron('* * * * *');
const cronTime = new Cron(predefined['@hourly']);

container.logger.info(`[CRON/STATUS] StatusChanger installed ${cronTime.normalized}, next run '${cronTime.next()}'`);
cronSchedule(cronTime.cron, () => {
Expand Down

0 comments on commit ee5d2c4

Please sign in to comment.