about summary refs log tree commit diff
path: root/MatrixAntiDmSpam/Program.cs
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-03-18 11:56:27 +0100
committerRory& <root@rory.gay>2025-03-18 11:56:27 +0100
commit8313eded62554b94073e1a7364926e387d4c53be (patch)
tree5fef74db8f753fb3386f4c9307c817bace5c3efa /MatrixAntiDmSpam/Program.cs
parentWork (diff)
downloadMatrixAntiDmSpam-8313eded62554b94073e1a7364926e387d4c53be.tar.xz
Add more stores, do osme work
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