about summary refs log tree commit diff
path: root/Utilities/LibMatrix.DevTestBot/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Utilities/LibMatrix.DevTestBot/Program.cs')
-rw-r--r--Utilities/LibMatrix.DevTestBot/Program.cs24
1 files changed, 0 insertions, 24 deletions
diff --git a/Utilities/LibMatrix.DevTestBot/Program.cs b/Utilities/LibMatrix.DevTestBot/Program.cs
deleted file mode 100644

index 7eb74d4..0000000 --- a/Utilities/LibMatrix.DevTestBot/Program.cs +++ /dev/null
@@ -1,24 +0,0 @@ -// See https://aka.ms/new-console-template for more information - -using LibMatrix.ExampleBot.Bot; -using LibMatrix.Services; -using LibMatrix.Utilities.Bot; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Hosting; - -Console.WriteLine("Hello, World!"); - -var host = Host.CreateDefaultBuilder(args).ConfigureServices((_, services) => { - services.AddScoped<DevTestBotConfiguration>(); - services.AddRoryLibMatrixServices(); - - services.AddMatrixBot() - .AddCommandHandler() - .DiscoverAllCommands() - .WithInviteHandler(ctx => Task.FromResult(ctx.MemberEvent.Sender!.EndsWith(":rory.gay"))); - - // services.AddHostedService<ServerRoomSizeCalulator>(); - services.AddHostedService<PingTestBot>(); -}).UseConsoleLifetime().Build(); - -await host.RunAsync(); \ No newline at end of file