Fix: Trim spaces in title as Discord does

to fix comare always seeing a change in whitespaces

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2022-03-04 19:43:41 +01:00
parent 7bf56e997d
commit f9004e5863
Signed by: luzifer
GPG Key ID: 0066F03ED215AD7D

View File

@ -133,7 +133,7 @@ func (m modStreamSchedule) cronUpdateSchedule() {
msgEmbed.Fields = append(msgEmbed.Fields, &discordgo.MessageEmbedField{
Name: m.formatTime(*seg.StartTime),
Value: title,
Value: strings.TrimSpace(title),
Inline: false,
})