diff options
Diffstat (limited to 'ExampleBots/MediaModeratorPoC/Program.cs')
-rw-r--r-- | ExampleBots/MediaModeratorPoC/Program.cs | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/ExampleBots/MediaModeratorPoC/Program.cs b/ExampleBots/MediaModeratorPoC/Program.cs deleted file mode 100644 index 5b8e734..0000000 --- a/ExampleBots/MediaModeratorPoC/Program.cs +++ /dev/null @@ -1,26 +0,0 @@ -// See https://aka.ms/new-console-template for more information - -using LibMatrix.Services; -using LibMatrix.Utilities.Bot; -using MediaModeratorPoC; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Hosting; - -Console.WriteLine("Hello, World!"); - -var host = Host.CreateDefaultBuilder(args).ConfigureServices((_, services) => { - services.AddScoped<TieredStorageService>(x => - new TieredStorageService( - cacheStorageProvider: new FileStorageProvider("bot_data/cache/"), - dataStorageProvider: new FileStorageProvider("bot_data/data/") - ) - ); - services.AddSingleton<MediaModBotConfiguration>(); - - services.AddRoryLibMatrixServices(); - services.AddBot(withCommands: true); - - services.AddHostedService<MediaModBot>(); -}).UseConsoleLifetime().Build(); - -await host.RunAsync(); |