Files

21 lines
557 B
C#
Raw Permalink Normal View History

2020-03-02 08:49:57 +04:00
using Kruzya.TelegramBot.CombotAntiSpam.Combot;
using Kruzya.TelegramBot.Core;
using Microsoft.Extensions.DependencyInjection;
2023-07-28 19:41:21 +03:00
using System;
2020-03-02 08:49:57 +04:00
2023-07-28 19:34:28 +03:00
namespace Kruzya.TelegramBot.CombotAntiSpam;
public class CombotAntiSpam : Module
2020-03-02 08:49:57 +04:00
{
2023-07-28 19:34:28 +03:00
public CombotAntiSpam(Core.Core core) : base(core)
2020-03-02 08:49:57 +04:00
{
2023-07-28 19:34:28 +03:00
}
2020-03-02 08:49:57 +04:00
2023-07-28 19:34:28 +03:00
public override void ConfigureServices(IServiceCollection services)
{
2023-07-28 19:41:21 +03:00
services.AddHttpClient<ICombotClient, CombotClient>(c =>
{
c.BaseAddress = new Uri("https://api.cas.chat/check");
});
2020-03-02 08:49:57 +04:00
}
2023-07-28 19:34:28 +03:00
}