mirror of
https://github.com/prosolis/gogobee.git
synced 2026-07-15 08:32:41 +00:00
Add !adv alias, hospital insurance billing, wordle/UNO earnings tracking, streak death protection
- Add !adv shorthand for !adventure commands and DM replies - Hospital bill now shows insurance deduction and amount due - Refactor hospital nudge from per-goroutine sleep to shared ticker - Dead players' streaks are frozen; grace period on revival day - Track wordle earnings in wordle_stats, show in !stats and superstats - Show UNO net earnings and trivia accuracy % in superstats - Disable sentiment/profanity emoji reactions (classification still logs) - Add URL_PREVIEW_IGNORE_USERS env var to skip bot users - Add DISABLE_WOTD_POST env var, remove unused wotd.Prefetch() - README updates for all of the above Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
17
main.go
17
main.go
@@ -372,7 +372,6 @@ func setupScheduledJobs(
|
||||
// Prefetch at 00:05 — grab data ahead of scheduled posts
|
||||
c.AddFunc("5 0 * * *", func() {
|
||||
slog.Info("scheduler: prefetching daily data")
|
||||
wotd.Prefetch()
|
||||
holidays.Prefetch()
|
||||
})
|
||||
|
||||
@@ -393,12 +392,16 @@ func setupScheduledJobs(
|
||||
})
|
||||
|
||||
// WOTD post at 08:00
|
||||
c.AddFunc("0 8 * * *", func() {
|
||||
slog.Info("scheduler: posting WOTD")
|
||||
for _, r := range rooms {
|
||||
wotd.PostWOTD(r)
|
||||
}
|
||||
})
|
||||
if strings.ToLower(os.Getenv("DISABLE_WOTD_POST")) != "true" {
|
||||
c.AddFunc("0 8 * * *", func() {
|
||||
slog.Info("scheduler: posting WOTD")
|
||||
for _, r := range rooms {
|
||||
wotd.PostWOTD(r)
|
||||
}
|
||||
})
|
||||
} else {
|
||||
slog.Info("scheduler: WOTD daily post disabled via DISABLE_WOTD_POST")
|
||||
}
|
||||
|
||||
// Game releases Monday 09:00
|
||||
c.AddFunc("0 9 * * 1", func() {
|
||||
|
||||
Reference in New Issue
Block a user