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
Branches main
No related tags found
No related merge requests found
Pipeline #3042 passed
......@@ -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 (
......
......@@ -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()
......
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