🚧 Add modules to DI, rename classes

This commit is contained in:
2020-03-02 08:49:57 +04:00
parent 1299e4dc7e
commit dc2307d74e
5 changed files with 60 additions and 55 deletions
+18
View File
@@ -0,0 +1,18 @@
using Kruzya.TelegramBot.CombotAntiSpam.Combot;
using Kruzya.TelegramBot.Core;
using Microsoft.Extensions.DependencyInjection;
namespace Kruzya.TelegramBot.CombotAntiSpam
{
public class CombotAntiSpam : Module
{
public CombotAntiSpam(Core.Core core) : base(core)
{
}
public override void ConfigureServices(IServiceCollection services)
{
services.AddSingleton<ICombotClient, CombotClient>();
}
}
}