From 3d1cfde726e8b8d4f3a820cdf5fb136c2f6bea33 Mon Sep 17 00:00:00 2001 From: Rory& Date: Sat, 15 Mar 2025 13:23:42 +0100 Subject: Initial commit --- MatrixAntiDmSpam/Program.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 MatrixAntiDmSpam/Program.cs (limited to 'MatrixAntiDmSpam/Program.cs') 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(); +builder.Services.AddRoryLibMatrixServices() + .AddMatrixBot() + .WithInviteHandler(); + +builder.Services.AddHostedService(); + +var host = builder.Build(); +host.Run(); \ No newline at end of file -- cgit 1.5.1