From 068fb8ed98b8fe04aa5936f59c0fbe440cd49e07 Mon Sep 17 00:00:00 2001
From: Janne Mareike Koschinski <janne@kuschku.de>
Date: Fri, 28 Feb 2025 19:02:51 +0100
Subject: [PATCH] feat: improve customizability

---
 go.mod  | 2 +-
 go.sum  | 4 ++--
 main.go | 8 +++++++-
 3 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/go.mod b/go.mod
index e975bd9..44ba35b 100644
--- a/go.mod
+++ b/go.mod
@@ -4,7 +4,7 @@ go 1.22.2
 
 require (
 	git.kuschku.de/justJanne/bahn-api v0.0.0-20210606022125-173e9216d8a8
-	git.kuschku.de/justJanne/stateless-matrix-bot-framework v0.1.3
+	git.kuschku.de/justJanne/stateless-matrix-bot-framework v0.1.4
 )
 
 require (
diff --git a/go.sum b/go.sum
index d9db784..6aa84a6 100644
--- a/go.sum
+++ b/go.sum
@@ -1,7 +1,7 @@
 git.kuschku.de/justJanne/bahn-api v0.0.0-20210606022125-173e9216d8a8 h1:5VmfteMrWeABylH1lP46QLBEx8YWawIfw2WdfGWSv/I=
 git.kuschku.de/justJanne/bahn-api v0.0.0-20210606022125-173e9216d8a8/go.mod h1:9d+hDIsjtAxjb0FPo6DLNqf9Co7CX35IHScmo9wQGlo=
-git.kuschku.de/justJanne/stateless-matrix-bot-framework v0.1.3 h1:cwQyLajDRdRJYa5PK62BrGMbFZkVi0MIGiFFn1zA0H4=
-git.kuschku.de/justJanne/stateless-matrix-bot-framework v0.1.3/go.mod h1:RF+HfGNMtINYT/+JNQRo3c3Cjaw36evgAVOhYzE0oCo=
+git.kuschku.de/justJanne/stateless-matrix-bot-framework v0.1.4 h1:8V+AIuv+OFUagWKgLfRHy6cxhZOpItNleVfDpolq7aQ=
+git.kuschku.de/justJanne/stateless-matrix-bot-framework v0.1.4/go.mod h1:RF+HfGNMtINYT/+JNQRo3c3Cjaw36evgAVOhYzE0oCo=
 github.com/andybalholm/cascadia v1.0.0 h1:hOCXnnZ5A+3eVDX8pvgl4kofXv2ELss0bKcqRySc45o=
 github.com/andybalholm/cascadia v1.0.0/go.mod h1:GsXiBklL0woXo1j/WYWtSYYC4ouU9PqHO0sqidkEA4Y=
 github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58=
diff --git a/main.go b/main.go
index f197256..f189448 100644
--- a/main.go
+++ b/main.go
@@ -13,7 +13,13 @@ func main() {
 	if err != nil {
 		panic(err)
 	}
-	bot := matrixbot.NewMatrixBot(pushUrl)
+	bot := matrixbot.MatrixBot{
+		AppName:    "Webhook Bot",
+		AppId:      "de.justjanne.webhook_bot",
+		ProfileTag: "webhook",
+		PushKey:    "webhook",
+		PushUrl:    pushUrl,
+	}
 	bot.HandleFunc("!8ball", handle8ball)
 	bot.HandleFunc("!trains", handleTrains)
 	err = initTrainHandler()
-- 
GitLab