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) {
|
||||
if BotStart.WebHook {
|
||||
log.Println("Sending detailed Discord webhook notification...")
|
||||
|
||||
message := "**Timetable Update**\n\n" + strings.Join(changes, "\n")
|
||||
|
|
@ -642,4 +643,5 @@ func sendUpdateDiscordWebhookWithDetails(changes []string) {
|
|||
body, _ := ioutil.ReadAll(resp.Body)
|
||||
log.Printf("Discord webhook failed with status %d: %s", resp.StatusCode, string(body))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue