From 0a7a186d4f213745c750a5853d44f501d3e16a0e Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 25 Feb 2022 18:41:25 +0100 Subject: [PATCH] debugging --- matrix-bot/matrix-bot.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/matrix-bot/matrix-bot.go b/matrix-bot/matrix-bot.go index cb555b8..4522a9c 100644 --- a/matrix-bot/matrix-bot.go +++ b/matrix-bot/matrix-bot.go @@ -4,8 +4,6 @@ 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" ) @@ -30,7 +28,8 @@ func SendMessage(header string, content string, url string) { panic(err) } - msg := format.RenderMarkdown(fmt.Sprintf("Thema: Radko-Stöckl-Schule - Aktuelles

%s

%s
%s", header, content, url), false, true) + //msg := format.RenderMarkdown(fmt.Sprintf("Thema: Radko-Stöckl-Schule - Aktuelles

%s

%s
%s", header, content, url), false, true) - client.SendMessageEvent(id.RoomID(cfg.RoomId), event.EventMessage, &msg) + //client.SendMessageEvent(id.RoomID(cfg.RoomId), event.EventMessage, &msg) + client.SendNotice(id.RoomID(cfg.RoomId), fmt.Sprintf("Thema: Radko-Stöckl-Schule - Aktuelles

%s

%s
%s", header, content, url)) }