about summary refs log tree commit diff
path: root/MatrixAntiDmSpam/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MatrixAntiDmSpam/Program.cs')
-rw-r--r--MatrixAntiDmSpam/Program.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/MatrixAntiDmSpam/Program.cs b/MatrixAntiDmSpam/Program.cs

index 39d8273..f813eab 100644 --- a/MatrixAntiDmSpam/Program.cs +++ b/MatrixAntiDmSpam/Program.cs
@@ -1,3 +1,4 @@ +using LibMatrix.Extensions; using LibMatrix.Services; using LibMatrix.Utilities.Bot; using MatrixAntiDmSpam; @@ -11,5 +12,10 @@ builder.Services.AddRoryLibMatrixServices() builder.Services.AddHostedService<PolicyListFetcher>(); +builder.Services.AddSingleton<InviteStore>(); +builder.Services.AddSingleton<PolicyStore>(); + +MatrixHttpClient.LogRequests = false; + var host = builder.Build(); host.Run(); \ No newline at end of file