BotSharp/src/Infrastructure/BotSharp.Core/Translation/TranslationPlugin.cs

17 lines
558 B
C#
Raw Normal View History

2024-05-09 16:09:21 +00:00
using BotSharp.Logger.Hooks;
using Microsoft.Extensions.Configuration;
namespace BotSharp.Core.Translation;
public class TranslationPlugin : IBotSharpPlugin
{
public string Id => "a81997c3-5d3a-4f18-bae0-be7a81d233ba";
public string Name => "Multi-language Translator";
public string Description => "Output the corresponding language response according to the user language";
public void RegisterDI(IServiceCollection services, IConfiguration config)
{
services.AddScoped<IConversationHook, TranslationResponseHook>();
}
}