about summary refs log tree commit diff
path: root/ExampleBots/MediaModeratorPoC/Program.cs
diff options
context:
space:
mode:
authorEmma [it/its]@Rory& <root@rory.gay>2023-11-23 05:42:33 +0100
committerEmma [it/its]@Rory& <root@rory.gay>2023-11-23 05:42:33 +0100
commit3e934eee892f69a8f78b94950993000522702769 (patch)
tree6aa0d3d26c9a07a7a3e097fe28abb785400bfbd6 /ExampleBots/MediaModeratorPoC/Program.cs
parentAdd license retroactively, matching where the code originated from (MatrixRoo... (diff)
downloadLibMatrix-3e934eee892f69a8f78b94950993000522702769.tar.xz
Moderation bot work
Diffstat (limited to 'ExampleBots/MediaModeratorPoC/Program.cs')
-rw-r--r--ExampleBots/MediaModeratorPoC/Program.cs26
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();