1 files changed, 4 insertions, 0 deletions
diff --git a/LibMatrix.ExampleBot/Program.cs b/LibMatrix.ExampleBot/Program.cs
index 63610b4..0378ec9 100644
--- a/LibMatrix.ExampleBot/Program.cs
+++ b/LibMatrix.ExampleBot/Program.cs
@@ -1,7 +1,9 @@
// See https://aka.ms/new-console-template for more information
+using ArcaneLibs;
using LibMatrix.ExampleBot.Bot;
using LibMatrix.ExampleBot.Bot.Interfaces;
+using LibMatrix.ExampleBot.Bot.StartupTasks;
using LibMatrix.Extensions;
using LibMatrix.Services;
using Microsoft.Extensions.DependencyInjection;
@@ -22,6 +24,8 @@ var host = Host.CreateDefaultBuilder(args).ConfigureServices((_, services) => {
Console.WriteLine($"Adding command {commandClass.Name}");
services.AddScoped(typeof(ICommand), commandClass);
}
+
+ services.AddHostedService<ServerRoomSizeCalulator>();
services.AddHostedService<MRUBot>();
}).UseConsoleLifetime().Build();
|