File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { config } from '../utils/config.js';
66 * Send "Ohayo!" message to the configured channel
77 */
88async function runOhayo ( client : Client ) : Promise < void > {
9- console . log ( '🌅 Running daily ohayo greeting...' ) ;
9+ console . log ( '🌅 Running weekly ohayo greeting...' ) ;
1010
1111 try {
1212 const channel = await client . channels . fetch ( config . ohayoChannelId ) ;
@@ -30,14 +30,14 @@ async function runOhayo(client: Client): Promise<void> {
3030
3131/**
3232 * Schedule and start the ohayo cron job
33- * Runs every day at 12:00 UTC (0 12 * * * )
33+ * Runs every Monday at 12:00 UTC (0 12 * * 1 )
3434 */
3535export function startOhayoJob ( client : Client ) : void {
36- console . log ( '⏰ Scheduling daily ohayo greeting for 12:00 UTC (0 12 * * * )' ) ;
36+ console . log ( '⏰ Scheduling weekly ohayo greeting for Mondays at 12:00 UTC (0 12 * * 1 )' ) ;
3737
3838 // Schedule: minute hour day month dayOfWeek
39- // 0 12 * * * = Every day at 12:00 UTC
40- cron . schedule ( '0 12 * * * ' , ( ) => {
39+ // 0 12 * * 1 = Every Monday at 12:00 UTC
40+ cron . schedule ( '0 12 * * 1 ' , ( ) => {
4141 runOhayo ( client ) ;
4242 } ) ;
4343
You can’t perform that action at this time.
0 commit comments