From 8f32ec9d0744861fbf04c5fe22edff500eb44126 Mon Sep 17 00:00:00 2001 From: Lukas Peters <39505290+c0untingNumbers@users.noreply.github.com> Date: Wed, 22 Jan 2025 10:10:55 -0500 Subject: [PATCH] Enabled good food for spring 2025 semester (#158) --- commands/enabled.go | 2 +- commands/scheduled/goodfood.go | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/commands/enabled.go b/commands/enabled.go index ec0ec51..a6068b4 100644 --- a/commands/enabled.go +++ b/commands/enabled.go @@ -70,7 +70,7 @@ func populateScheduledEvents(ctx ddtrace.SpanContext) { defer span.Finish() // Populate the scheduled events - // ScheduledEvents["goodfood"] = scheduled.GoodFood + ScheduledEvents["goodfood"] = scheduled.GoodFood ScheduledEvents["heartbeat"] = scheduled.Heartbeat ScheduledEvents["status"] = scheduled.Status ScheduledEvents["update"] = scheduled.Update diff --git a/commands/scheduled/goodfood.go b/commands/scheduled/goodfood.go index ca62f5e..0ba1161 100644 --- a/commands/scheduled/goodfood.go +++ b/commands/scheduled/goodfood.go @@ -76,18 +76,18 @@ func GoodFood(s *discordgo.Session, quit chan interface{}) error { } // 11:00 AM - must(c.AddFunc("0 0 11 * * MON", func() {})) // Monday - must(c.AddFunc("0 0 11 * * TUE", func() { sendGoodFoodPing(s, "Crossroads", span.Context()) })) // Tuesday - must(c.AddFunc("0 0 11 * * WED", func() { sendGoodFoodPing(s, "Brick City", span.Context()) })) // Wednesday - must(c.AddFunc("0 0 11 * * THU", func() {})) // Thursday - must(c.AddFunc("0 0 11 * * FRI", func() { sendGoodFoodPing(s, "Brick City", span.Context()) })) // Friday - must(c.AddFunc("0 0 11 * * SAT", func() {})) // Saturday - must(c.AddFunc("0 0 11 * * SUN", func() {})) // Sunday + must(c.AddFunc("0 0 11 * * MON", func() { sendGoodFoodPing(s, "RITZ", span.Context()) })) // Monday + must(c.AddFunc("0 0 11 * * TUE", func() { sendGoodFoodPing(s, "Crossroads", span.Context()) })) // Tuesday + must(c.AddFunc("0 0 11 * * WED", func() { sendGoodFoodPing(s, "Brick City Cafe", span.Context()) })) // Wednesday + must(c.AddFunc("0 0 11 * * THU", func() {})) // Thursday + must(c.AddFunc("0 0 11 * * FRI", func() { sendGoodFoodPing(s, "Brick City Cafe", span.Context()) })) // Friday + must(c.AddFunc("0 0 11 * * SAT", func() {})) // Saturday + must(c.AddFunc("0 0 11 * * SUN", func() {})) // Sunday // 4:00 PM must(c.AddFunc("0 0 16 * * MON", func() {})) // Monday must(c.AddFunc("0 0 16 * * TUE", func() {})) // Tuesday - must(c.AddFunc("0 0 16 * * WED", func() {})) // Wednesday + must(c.AddFunc("0 0 16 * * WED", func() { sendGoodFoodPing(s, "RITZ", span.Context()) })) // Wednesday must(c.AddFunc("0 0 16 * * THU", func() { sendGoodFoodPing(s, "Crossroads", span.Context()) })) // Thursday must(c.AddFunc("0 0 16 * * FRI", func() {})) // Friday must(c.AddFunc("0 0 16 * * SAT", func() {})) // Saturday