Added guard.

This should be refactored to handle generalized announcements or have
some API for collecting all scheduled messages.
This commit is contained in:
Benjamin A. Shelton 2026-11-09 14:12:06 -07:00
commit d06ecc76e3
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01

View file

@ -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())
}
}
}