AntiFlood service

This commit is contained in:
2022-02-16 19:44:53 +03:00
parent a4d1dea47d
commit 520f1efe37
4 changed files with 89 additions and 4 deletions
+1
View File
@@ -43,6 +43,7 @@ namespace Kruzya.TelegramBot.Core
services.AddSingleton<ICacheStorage<long, User>, MemoryCache<long, User>>();
services.AddSingleton<UserService>();
services.AddSingleton<IAntiFlood, MemoryAntiFloodService>();
// Trigger module handlers.
_core.Modules.ConfigureServices(services);