diff options
author | Rory& <root@rory.gay> | 2024-02-23 12:31:43 +0100 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-02-23 12:31:43 +0100 |
commit | 8579db2c9099630b6a268015d586db73435032f0 (patch) | |
tree | 6b16adca592da2069943b9cbc518fc55d01713d7 /Program.cs | |
parent | Add gitignore, license, editorconfig (diff) | |
download | ModerationBot-8579db2c9099630b6a268015d586db73435032f0.tar.xz |
Changes
Diffstat (limited to 'Program.cs')
-rw-r--r-- | Program.cs | 2 |
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(); |