about summary refs log tree commit diff
path: root/ExampleBots/ModerationBot/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ExampleBots/ModerationBot/Program.cs (renamed from ExampleBots/MediaModeratorPoC/Program.cs)8
1 files changed, 5 insertions, 3 deletions
diff --git a/ExampleBots/MediaModeratorPoC/Program.cs b/ExampleBots/ModerationBot/Program.cs
index 5b8e734..b41b0be 100644
--- a/ExampleBots/MediaModeratorPoC/Program.cs
+++ b/ExampleBots/ModerationBot/Program.cs
@@ -2,7 +2,7 @@
 

 using LibMatrix.Services;

 using LibMatrix.Utilities.Bot;

-using MediaModeratorPoC;

+using ModerationBot;

 using Microsoft.Extensions.DependencyInjection;

 using Microsoft.Extensions.Hosting;

 

@@ -15,12 +15,14 @@ var host = Host.CreateDefaultBuilder(args).ConfigureServices((_, services) => {
             dataStorageProvider: new FileStorageProvider("bot_data/data/")

         )

     );

-    services.AddSingleton<MediaModBotConfiguration>();

+    services.AddSingleton<ModerationBotConfiguration>();

 

     services.AddRoryLibMatrixServices();

     services.AddBot(withCommands: true);

 

-    services.AddHostedService<MediaModBot>();

+    services.AddSingleton<PolicyEngine>();

+    

+    services.AddHostedService<ModerationBot.ModerationBot>();

 }).UseConsoleLifetime().Build();

 

 await host.RunAsync();