Skip to content

Commit 02a535a

Browse files
kronosapiensclaude
andauthored
feat: change ohayo greeting to daily at noon UTC (#5)
Changed from Monday-only at 10:00 UTC to daily at 12:00 UTC to make it easier to monitor behavior after observing duplicate message delivery. Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 28f6398 commit 02a535a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

backend/src/jobs/ohayo.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { config } from '../utils/config.js';
66
* Send "Ohayo!" message to the configured channel
77
*/
88
async function runOhayo(client: Client): Promise<void> {
9-
console.log('🌅 Running Monday ohayo greeting...');
9+
console.log('🌅 Running daily 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 Monday at 10:00 UTC (0 10 * * 1)
33+
* Runs every day at 12:00 UTC (0 12 * * *)
3434
*/
3535
export function startOhayoJob(client: Client): void {
36-
console.log('⏰ Scheduling Monday ohayo greeting for 10:00 UTC (0 10 * * 1)');
36+
console.log('⏰ Scheduling daily ohayo greeting for 12:00 UTC (0 12 * * *)');
3737

3838
// Schedule: minute hour day month dayOfWeek
39-
// 0 10 * * 1 = Every Monday at 10:00 UTC
40-
cron.schedule('0 10 * * 1', () => {
39+
// 0 12 * * * = Every day at 12:00 UTC
40+
cron.schedule('0 12 * * *', () => {
4141
runOhayo(client);
4242
});
4343

0 commit comments

Comments
 (0)