about summary refs log tree commit diff
path: root/MatrixAntiDmSpam/Program.cs
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-05-15 23:09:41 +0200
committerRory& <root@rory.gay>2025-05-15 23:10:54 +0200
commit5e13af7480fb40ff26a3e266217c0db702ee4b2f (patch)
treed00d1d104df7d3c29e3b9b8d3974d84eac4e8749 /MatrixAntiDmSpam/Program.cs
parentFix bug removing all policies that arent user added, theoretically fix missin... (diff)
downloadMatrixAntiDmSpam-5e13af7480fb40ff26a3e266217c0db702ee4b2f.tar.xz
Some various improvements, redo configuration, clean up example config
Diffstat (limited to 'MatrixAntiDmSpam/Program.cs')
-rw-r--r--MatrixAntiDmSpam/Program.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/MatrixAntiDmSpam/Program.cs b/MatrixAntiDmSpam/Program.cs

index 935e23f..5da7184 100644 --- a/MatrixAntiDmSpam/Program.cs +++ b/MatrixAntiDmSpam/Program.cs
@@ -1,4 +1,3 @@ -using LibMatrix.Extensions; using LibMatrix.Services; using LibMatrix.Utilities.Bot; using MatrixAntiDmSpam.Core; @@ -15,6 +14,9 @@ builder.Services.AddHostedService<PolicyExecutor>(); builder.Services.AddSingleton<PolicyStore>(); +builder.Configuration["LibMatrixBot:InviteListener:SyncConfiguration:MinimumSyncTime"] ??= builder.Configuration["AntiDmSpam:MinimumSyncTime"]; + + // MatrixHttpClient.LogRequests = false; var host = builder.Build();