Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions commands/scheduled/goodfood.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
)

// sendGoodFoodPing sends a ping to the Good Food channel
func sendGoodFoodPing(s *discordgo.Session, location string, ctx ddtrace.SpanContext) {

Check failure on line 25 in commands/scheduled/goodfood.go

View workflow job for this annotation

GitHub Actions / Code Checks

func `sendGoodFoodPing` is unused (unused)

Check failure on line 25 in commands/scheduled/goodfood.go

View workflow job for this annotation

GitHub Actions / Code Checks

func `sendGoodFoodPing` is unused (unused)
span := tracer.StartSpan(
"commands.scheduled.goodfood:sendGoodFoodPing",
tracer.ResourceName("Schedued.GoodFood:sendGoodFoodPing"),
Expand Down Expand Up @@ -76,19 +76,19 @@
}

// 11:00 AM
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
must(c.AddFunc("0 0 11 * * MON", func() {})) // Monday
must(c.AddFunc("0 0 11 * * TUE", func() {})) // Tuesday
must(c.AddFunc("0 0 11 * * WED", func() {})) // Wednesday
must(c.AddFunc("0 0 11 * * THU", func() {})) // Thursday
must(c.AddFunc("0 0 11 * * FRI", func() {})) // 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() { 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 * * WED", func() {})) // Wednesday
must(c.AddFunc("0 0 16 * * THU", func() {})) // Thursday
must(c.AddFunc("0 0 16 * * FRI", func() {})) // Friday
must(c.AddFunc("0 0 16 * * SAT", func() {})) // Saturday
must(c.AddFunc("0 0 16 * * SUN", func() {})) // Sunday
Expand Down
Loading