diff options
author | Emma [it/its]@Rory& <root@rory.gay> | 2023-11-23 05:42:33 +0100 |
---|---|---|
committer | Emma [it/its]@Rory& <root@rory.gay> | 2023-11-23 05:42:33 +0100 |
commit | 3e934eee892f69a8f78b94950993000522702769 (patch) | |
tree | 6aa0d3d26c9a07a7a3e097fe28abb785400bfbd6 /ExampleBots/ModerationBot/Program.cs | |
parent | Add license retroactively, matching where the code originated from (MatrixRoo... (diff) | |
download | LibMatrix-3e934eee892f69a8f78b94950993000522702769.tar.xz |
Moderation bot work
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(); |