Fix: Compare content for updates

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2022-12-06 18:22:54 +01:00
parent 788edcba5b
commit 4f63bf2d19
Signed by: luzifer
GPG key ID: D91C3E91E4CAD6F5

View file

@ -122,7 +122,7 @@ func (m modStreamSchedule) cronUpdateSchedule() {
if managedMsg != nil { if managedMsg != nil {
oldEmbed := managedMsg.Embeds[0] oldEmbed := managedMsg.Embeds[0]
if isDiscordMessageEmbedEqual(oldEmbed, msgEmbed) { if isDiscordMessageEmbedEqual(oldEmbed, msgEmbed) && strings.TrimSpace(managedMsg.Content) == strings.TrimSpace(contentString) {
log.Debug("Stream Schedule is up-to-date") log.Debug("Stream Schedule is up-to-date")
return return
} }