about summary refs log tree commit diff
path: root/Program.cs
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-02-23 12:31:43 +0100
committerRory& <root@rory.gay>2024-02-23 12:31:43 +0100
commit8579db2c9099630b6a268015d586db73435032f0 (patch)
tree6b16adca592da2069943b9cbc518fc55d01713d7 /Program.cs
parentAdd gitignore, license, editorconfig (diff)
downloadModerationBot-8579db2c9099630b6a268015d586db73435032f0.tar.xz
Changes
Diffstat (limited to 'Program.cs')
-rw-r--r--Program.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Program.cs b/Program.cs
index d125258..d783af1 100644
--- a/Program.cs
+++ b/Program.cs
@@ -6,6 +6,7 @@ using Microsoft.Extensions.Configuration;
 using Microsoft.Extensions.DependencyInjection;
 using Microsoft.Extensions.Hosting;
 using ModerationBot;
+using ModerationBot.Services;
 
 Console.WriteLine("Hello, World!");
 
@@ -33,6 +34,7 @@ var host = builder.ConfigureServices((_, services) => {
     services.AddBot(withCommands: true);
 
     services.AddSingleton<PolicyEngine>();
+    services.AddSingleton<ModerationBotRoomProvider>();
 
     services.AddHostedService<ModerationBot.ModerationBot>();
 }).UseConsoleLifetime().Build();