From 3ed00f732a284b5a3e96e52d4e3a71869135869b Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Mon, 26 Jun 2023 02:43:54 +0200 Subject: Dependency injection stuff --- MatrixRoomUtils.Bot/MRUBotConfiguration.cs | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 MatrixRoomUtils.Bot/MRUBotConfiguration.cs (limited to 'MatrixRoomUtils.Bot/MRUBotConfiguration.cs') diff --git a/MatrixRoomUtils.Bot/MRUBotConfiguration.cs b/MatrixRoomUtils.Bot/MRUBotConfiguration.cs deleted file mode 100644 index 14d9b60..0000000 --- a/MatrixRoomUtils.Bot/MRUBotConfiguration.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Microsoft.Extensions.Configuration; - -namespace MatrixRoomUtils.Bot; - -public class MRUBotConfiguration { - public MRUBotConfiguration(IConfiguration config) { - config.GetRequiredSection("Bot").Bind(this); - } - public string Homeserver { get; set; } = ""; - public string AccessToken { get; set; } = ""; -} \ No newline at end of file -- cgit 1.5.1