diff --git a/matrix-bot/matrix-bot.go b/matrix-bot/matrix-bot.go index 6e95cfb..cb555b8 100644 --- a/matrix-bot/matrix-bot.go +++ b/matrix-bot/matrix-bot.go @@ -1,6 +1,8 @@ package matrixbot import ( + "fmt" + "maunium.net/go/mautrix" "maunium.net/go/mautrix/event" "maunium.net/go/mautrix/format" @@ -8,7 +10,7 @@ import ( "roese.dev/matrix-development-lauge/modules/config" ) -func SendMessage(msg string) { +func SendMessage(header string, content string, url string) { cfg := config.Cfg.Bot client, err := mautrix.NewClient(cfg.HomeserverUrl, "", "") @@ -28,7 +30,7 @@ func SendMessage(msg string) { panic(err) } - content := format.RenderMarkdown(msg, false, true) + msg := format.RenderMarkdown(fmt.Sprintf("Thema: Radko-Stöckl-Schule - Aktuelles