about summary refs log tree commit diff
path: root/Program.cs
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-03-22 17:44:14 +0100
committerRory& <root@rory.gay>2024-03-22 17:44:14 +0100
commit4072e5922b671c9d93dbf9727123046054ca6dae (patch)
tree1c8cd208844544bd7ba89055614d9b2a4673ba50 /Program.cs
parentAdd gitignore, license, editorconfig (diff)
downloadPluralContactBotPoC-4072e5922b671c9d93dbf9727123046054ca6dae.tar.xz
Diffstat (limited to 'Program.cs')
-rw-r--r--Program.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Program.cs b/Program.cs
index f65f2e9..674f91d 100644
--- a/Program.cs
+++ b/Program.cs
@@ -64,7 +64,7 @@ var host = Host.CreateDefaultBuilder(args).ConfigureServices((_, services) => {
     services.AddSingleton<AppServiceConfiguration>();
 
     services.AddRoryLibMatrixServices();
-    services.AddBot(withCommands: true);
+    services.AddMatrixBot().AddCommandHandler().DiscoverAllCommands();
 
     services.AddHostedService<PluralContactBot>();
 }).UseConsoleLifetime().Build();