From 21da6cde79ccd0cb7f895a29e3d8cab959ef11ba Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Mon, 4 Sep 2023 02:17:10 +0200 Subject: Too many changes to name... --- LibMatrix.ExampleBot/Program.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'LibMatrix.ExampleBot/Program.cs') 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(); services.AddHostedService(); }).UseConsoleLifetime().Build(); -- cgit 1.4.1