mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
[cm] warn decomposition
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user