Skip to content

Commit

Permalink
Enabled good food for spring 2025 semester (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
c0untingNumbers authored Jan 22, 2025
1 parent c9fad25 commit 8f32ec9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion commands/enabled.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 8 additions & 8 deletions commands/scheduled/goodfood.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f32ec9

Please sign in to comment.