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.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/MatrixAntiDmSpam/Program.cs b/MatrixAntiDmSpam/Program.cs

index 0be6825..51850a1 100644 --- a/MatrixAntiDmSpam/Program.cs +++ b/MatrixAntiDmSpam/Program.cs
@@ -10,6 +10,7 @@ builder.Services.AddRoryLibMatrixServices() .AddMatrixBot() .WithInviteHandler<RoomInviteHandler>(); +builder.Services.AddHostedService<AntiDmSpamStartup>(); builder.Services.AddHostedService<PolicyListFetcher>(); builder.Services.AddSingleton<InviteManager>(); builder.Services.AddHostedService<InviteManager>(sp => sp.GetRequiredService<InviteManager>());