diff options
Diffstat (limited to 'OsuFederatedBeatmapApi/Program.cs')
-rw-r--r-- | OsuFederatedBeatmapApi/Program.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OsuFederatedBeatmapApi/Program.cs b/OsuFederatedBeatmapApi/Program.cs index 27175f1..15f9b12 100644 --- a/OsuFederatedBeatmapApi/Program.cs +++ b/OsuFederatedBeatmapApi/Program.cs @@ -21,7 +21,8 @@ builder.Services.AddScoped<TieredStorageService>(x => builder.Services.AddRoryLibMatrixServices(); builder.Services.AddBot(withCommands: true); -builder.Services.AddSingleton<FederatedBeatmapApiBotAccountDataService>(); +builder.Services.AddSingleton<FederatedBeatmapApiBotConfiguration>(); +builder.Services.AddScoped<FederatedBeatmapApiBotAccountDataService>(); builder.Services.AddHostedService<FederatedBeatmapApiBot>(); var app = builder.Build(); |