Skip to content
Snippets Groups Projects
Verified Commit 068fb8ed authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

feat: improve customizability

parent 5d9ef4c5
No related branches found
No related tags found
No related merge requests found
Pipeline #3042 passed
...@@ -4,7 +4,7 @@ go 1.22.2 ...@@ -4,7 +4,7 @@ go 1.22.2
require ( require (
git.kuschku.de/justJanne/bahn-api v0.0.0-20210606022125-173e9216d8a8 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 ( require (
......
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 h1:5VmfteMrWeABylH1lP46QLBEx8YWawIfw2WdfGWSv/I=
git.kuschku.de/justJanne/bahn-api v0.0.0-20210606022125-173e9216d8a8/go.mod h1:9d+hDIsjtAxjb0FPo6DLNqf9Co7CX35IHScmo9wQGlo= 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.4 h1:8V+AIuv+OFUagWKgLfRHy6cxhZOpItNleVfDpolq7aQ=
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/go.mod h1:RF+HfGNMtINYT/+JNQRo3c3Cjaw36evgAVOhYzE0oCo=
github.com/andybalholm/cascadia v1.0.0 h1:hOCXnnZ5A+3eVDX8pvgl4kofXv2ELss0bKcqRySc45o= github.com/andybalholm/cascadia v1.0.0 h1:hOCXnnZ5A+3eVDX8pvgl4kofXv2ELss0bKcqRySc45o=
github.com/andybalholm/cascadia v1.0.0/go.mod h1:GsXiBklL0woXo1j/WYWtSYYC4ouU9PqHO0sqidkEA4Y= github.com/andybalholm/cascadia v1.0.0/go.mod h1:GsXiBklL0woXo1j/WYWtSYYC4ouU9PqHO0sqidkEA4Y=
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58=
......
...@@ -13,7 +13,13 @@ func main() { ...@@ -13,7 +13,13 @@ func main() {
if err != nil { if err != nil {
panic(err) 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("!8ball", handle8ball)
bot.HandleFunc("!trains", handleTrains) bot.HandleFunc("!trains", handleTrains)
err = initTrainHandler() err = initTrainHandler()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment