[entertainment] add guess game

This commit is contained in:
Andriy
2023-01-18 02:07:48 +02:00
parent c61d875a6a
commit ec11cf4496
5 changed files with 145 additions and 1 deletions
+12 -1
View File
@@ -1,9 +1,20 @@
using Kruzya.TelegramBot.Core;
global using IGuessCache = Kruzya.TelegramBot.Core.Cache.ICacheStorage<Telegram.Bot.Types.ChatId, System.Collections.Concurrent.ConcurrentDictionary<int, West.Entertainment.Handler.GuessData>>;
global using GuessCache = Kruzya.TelegramBot.Core.Cache.MemoryCache<Telegram.Bot.Types.ChatId, System.Collections.Concurrent.ConcurrentDictionary<int, West.Entertainment.Handler.GuessData>>;
using Kruzya.TelegramBot.Core;
using Microsoft.Extensions.DependencyInjection;
namespace West.Entertainment
{
public class Entertainment : Module
{
public Entertainment(Core core) : base(core) { }
public override void ConfigureServices(IServiceCollection services)
{
services.AddSingleton<IGuessCache, GuessCache>();
}
}
}