Temp timezone fix #11
1 changed files with 37 additions and 35 deletions
2
main.go
2
main.go
|
|
@ -615,6 +615,7 @@ func sendDiscordWebhook(subject string, room string, nextTime string, Status str
|
||||||
}
|
}
|
||||||
|
|
||||||
func sendUpdateDiscordWebhookWithDetails(changes []string) {
|
func sendUpdateDiscordWebhookWithDetails(changes []string) {
|
||||||
|
if BotStart.WebHook {
|
||||||
log.Println("Sending detailed Discord webhook notification...")
|
log.Println("Sending detailed Discord webhook notification...")
|
||||||
|
|
||||||
message := "**Timetable Update**\n\n" + strings.Join(changes, "\n")
|
message := "**Timetable Update**\n\n" + strings.Join(changes, "\n")
|
||||||
|
|
@ -643,3 +644,4 @@ func sendUpdateDiscordWebhookWithDetails(changes []string) {
|
||||||
log.Printf("Discord webhook failed with status %d: %s", resp.StatusCode, string(body))
|
log.Printf("Discord webhook failed with status %d: %s", resp.StatusCode, string(body))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue