Files
2023-07-29 15:14:52 +03:00

22 lines
646 B
C#

using Kruzya.TelegramBot.Core;
using Kruzya.TelegramBot.Core.Extensions;
using Microsoft.Extensions.DependencyInjection;
using West.TelegramBot.CodeWatcher.Options;
using West.TelegramBot.CodeWatcher.Service;
namespace West.TelegramBot.CodeWatcher;
public class CodeWatcher : Module
{
public CodeWatcher(Core core) : base(core) {}
public override void ConfigureServices(IServiceCollection services)
{
services.AddOption<CodeWatcherMode>();
services.AddHttpClient<IHasteService, HasteService>(c =>
{
c.BaseAddress = new Uri(Core.Configuration["HastebinUrl"]!);
});
}
}