From d06ecc76e35c95aad1cc0f7cab950ccff82a5ac8 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Mon, 9 Nov 2026 14:12:06 -0700 Subject: [PATCH] Added guard. This should be refactored to handle generalized announcements or have some API for collecting all scheduled messages. --- internal/app/app.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/app/app.go b/internal/app/app.go index b29eea2..0e2c9b8 100644 --- a/internal/app/app.go +++ b/internal/app/app.go @@ -161,7 +161,9 @@ func (a *App) daily() { // I'm somewhat concerned that once the error handling is resolved, this // could get triggered without some guards. Considering checkout // sb.Len() or the total birthdays. - a.bot.SendMarkdownMessage(chat.ID, sb.String()) + if sb.Len() > 0 { + a.bot.SendMarkdownMessage(chat.ID, sb.String()) + } } }