diff options
author | Emma [it/its]@Rory& <root@rory.gay> | 2023-10-14 23:19:46 +0200 |
---|---|---|
committer | Emma [it/its]@Rory& <root@rory.gay> | 2023-10-14 23:19:46 +0200 |
commit | 73461bd79f923caa44740f170213a4abb4743660 (patch) | |
tree | 89cbb7403b4bf3f86a505d70a8f255b6463a2c3f /OsuFederatedBeatmapApi/Program.cs | |
parent | Maybe fix libmatrix bug with room creation (diff) | |
download | OsuFederatedBeatmapApi-master.tar.xz |
Diffstat (limited to 'OsuFederatedBeatmapApi/Program.cs')
-rw-r--r-- | OsuFederatedBeatmapApi/Program.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/OsuFederatedBeatmapApi/Program.cs b/OsuFederatedBeatmapApi/Program.cs index 15f9b12..8f54865 100644 --- a/OsuFederatedBeatmapApi/Program.cs +++ b/OsuFederatedBeatmapApi/Program.cs @@ -1,3 +1,4 @@ +using System.Text.Json; using LibMatrix.Services; using LibMatrix.Utilities.Bot; using OsuFederatedBeatmapApi.Services; @@ -21,6 +22,8 @@ builder.Services.AddScoped<TieredStorageService>(x => builder.Services.AddRoryLibMatrixServices(); builder.Services.AddBot(withCommands: true); +builder.Services.AddScoped<BeatmapFetcherService>(); + builder.Services.AddSingleton<FederatedBeatmapApiBotConfiguration>(); builder.Services.AddScoped<FederatedBeatmapApiBotAccountDataService>(); builder.Services.AddHostedService<FederatedBeatmapApiBot>(); |