[cm] warn decomposition

This commit is contained in:
West14
2022-05-05 13:26:17 +03:00
parent d90556d445
commit df43c45f02
4 changed files with 119 additions and 48 deletions
+4
View File
@@ -15,6 +15,10 @@ public class ChatManagement : Module
public override void ConfigureServices(IServiceCollection services)
{
services.AddScoped<RulesService>();
services.AddScoped<WarnService>();
services.AddTelegramBotParameterParser<BanLength.Param, BanLength.Parser>();
WarnService.WarnEvent += Notifier.WarnNotify;
WarnService.UnWarnEvent += Notifier.UnWarnNotify;
}
}