debugging
parent
0a7a186d4f
commit
8cf6c0b113
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue