Compare commits

..

No commits in common. "0a7a186d4f213745c750a5853d44f501d3e16a0e" and "b8ebeddfacf69bd73e7aad3187bb7a879a5b3807" have entirely different histories.

2 changed files with 5 additions and 4 deletions

View File

@ -4,6 +4,8 @@ import (
"fmt"
"maunium.net/go/mautrix"
"maunium.net/go/mautrix/event"
"maunium.net/go/mautrix/format"
"maunium.net/go/mautrix/id"
"roese.dev/matrix-development-lauge/modules/config"
)
@ -28,8 +30,7 @@ func SendMessage(header string, content string, url string) {
panic(err)
}
//msg := format.RenderMarkdown(fmt.Sprintf("Thema: Radko-Stöckl-Schule - Aktuelles <h4>%s</h4>%s<br>%s", header, content, url), false, true)
msg := format.RenderMarkdown(fmt.Sprintf("Thema: Radko-Stöckl-Schule - Aktuelles <h4>%s</h4>%s<br>%s", header, content, url), false, true)
//client.SendMessageEvent(id.RoomID(cfg.RoomId), event.EventMessage, &msg)
client.SendNotice(id.RoomID(cfg.RoomId), fmt.Sprintf("Thema: Radko-Stöckl-Schule - Aktuelles <h4>%s</h4>%s<br>%s", header, content, url))
client.SendMessageEvent(id.RoomID(cfg.RoomId), event.EventMessage, &msg)
}

View File

@ -83,6 +83,6 @@ func School() {
log.Println("header", latest_page_title, "text", text, "url", url)
matrixbot.SendMessage(latest_page_title, text, "https://www.radko-stoeckl-schule.de"+url)
matrixbot.SendMessage(latest_page_title, text, url)
}
}