1 files changed, 16 insertions, 0 deletions
diff --git a/MatrixAntiDmSpam/Program.cs b/MatrixAntiDmSpam/Program.cs
new file mode 100644
index 0000000..cbf1dc9
--- /dev/null
+++ b/MatrixAntiDmSpam/Program.cs
@@ -0,0 +1,16 @@
+using System.ComponentModel;
+using LibMatrix.Services;
+using LibMatrix.Utilities.Bot;
+using MatrixAntiDmSpam;
+
+var builder = Host.CreateApplicationBuilder(args);
+
+builder.Services.AddSingleton<AntiDmSpamConfiguration>();
+builder.Services.AddRoryLibMatrixServices()
+ .AddMatrixBot()
+ .WithInviteHandler<InviteHandler>();
+
+builder.Services.AddHostedService<PolicyListFetcher>();
+
+var host = builder.Build();
+host.Run();
\ No newline at end of file
|