From 8f3512e8a41cb58cbfddd51403c986ce89ddac16 Mon Sep 17 00:00:00 2001 From: lyx0 <66651385+lyx0@users.noreply.github.com> Date: Sun, 4 Feb 2024 12:17:32 +0100 Subject: [PATCH] remove unused flag from dockerfile --- Dockerfile | 2 +- cmd/bot/main.go | 2 ++ go.mod | 2 +- go.sum | 3 +++ 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index bcc33af..12dac5a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,5 +17,5 @@ RUN go get -d -v ./... Run go build -o "Nourybot.out" ./cmd/bot # Run the executable -CMD [ "./Nourybot.out", "--database", "nourybot.db" ] +CMD [ "./Nourybot.out" ] diff --git a/cmd/bot/main.go b/cmd/bot/main.go index 162966d..e7a8315 100644 --- a/cmd/bot/main.go +++ b/cmd/bot/main.go @@ -95,6 +95,8 @@ func main() { var lastRoomID id.RoomID syncer := app.MatrixClient.Syncer.(*mautrix.DefaultSyncer) + syncer.OnSync(app.MatrixClient.DontProcessOldEvents) + //app.MatrixClient.Syncer.(mautrix.ExtensibleSyncer).OnSync(app.MatrixClient.DontProcessOldEvents) syncer.OnEventType(event.EventMessage, func(source mautrix.EventSource, evt *event.Event) { lastRoomID = evt.RoomID rl.SetPrompt(fmt.Sprintf("%s> ", lastRoomID)) diff --git a/go.mod b/go.mod index 8f89de5..6c9be2c 100644 --- a/go.mod +++ b/go.mod @@ -7,13 +7,13 @@ require ( github.com/joho/godotenv v1.5.1 github.com/mattn/go-sqlite3 v1.14.19 github.com/rs/zerolog v1.31.0 + github.com/u2takey/ffmpeg-go v0.5.0 maunium.net/go/mautrix v0.16.3-0.20231215142331-753cdb2e1cb0 ) require ( github.com/aws/aws-sdk-go v1.38.20 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect - github.com/u2takey/ffmpeg-go v0.5.0 // indirect github.com/u2takey/go-utils v0.3.1 // indirect ) diff --git a/go.sum b/go.sum index 9fb25d9..678cf50 100644 --- a/go.sum +++ b/go.sum @@ -27,6 +27,7 @@ github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+ github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= +github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8= github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0= github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4= @@ -104,12 +105,14 @@ golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.7/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= maunium.net/go/maulogger/v2 v2.4.1 h1:N7zSdd0mZkB2m2JtFUsiGTQQAdP0YeFWT7YMc80yAL8=