Skip to content

Commit

Permalink
Feat/lr (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
MSWS authored Feb 19, 2024
2 parents 35198a3 + 25ccc8b commit 3cf08ac
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions public/Jailbreak.Formatting/Logistics/LanguageConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,8 @@ public void WithRebel<TRebel>()
public void WithLogging<TLogging>()
where TLogging : class, ILanguage<TDialect>, ILogMessages
=> _collection.AddSingleton<ILogMessages, TLogging>();

public void WithLastRequest<TLastRequest>()
where TLastRequest : class, ILanguage<TDialect>, ILastRequestMessages
=> _collection.AddSingleton<ILastRequestMessages, TLastRequest>();
}
1 change: 1 addition & 0 deletions src/Jailbreak/Jailbreak.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
<ItemGroup>
<ProjectReference Include="..\..\lang\Jailbreak.English\Jailbreak.English.csproj" />
<ProjectReference Include="..\..\mod\Jailbreak.Debug\Jailbreak.Debug.csproj" />
<ProjectReference Include="..\..\mod\Jailbreak.LastRequest\Jailbreak.LastRequest.csproj" />
<ProjectReference Include="..\..\mod\Jailbreak.Teams\Jailbreak.Teams.csproj" />
<ProjectReference Include="..\..\mod\Jailbreak.Warden\Jailbreak.Warden.csproj" />
<ProjectReference Include="..\..\mod\Jailbreak.Rebel\Jailbreak.Rebel.csproj" />
Expand Down
2 changes: 2 additions & 0 deletions src/Jailbreak/JailbreakServiceCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
using Jailbreak.English.Warden;
using Jailbreak.Formatting.Logistics;
using Jailbreak.Generic;
using Jailbreak.LastRequest;
using Jailbreak.Logs;
using Jailbreak.Public.Configuration;
using Jailbreak.Rebel;
Expand Down Expand Up @@ -37,6 +38,7 @@ public void ConfigureServices(IServiceCollection serviceCollection)
serviceCollection.AddJailbreakTeams();
serviceCollection.AddJailbreakRebel();
serviceCollection.AddJailbreakDebug();
serviceCollection.AddJailbreakLastRequest();

// Add in english localization
serviceCollection.AddLanguage<Formatting.Languages.English>(config =>
Expand Down

0 comments on commit 3cf08ac

Please sign in to comment.