2023-01-18 02:07:48 +02:00
|
|
|
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;
|
|
|
|
|
|
2022-01-02 21:56:14 +02:00
|
|
|
|
2023-07-29 15:14:52 +03:00
|
|
|
namespace West.Entertainment;
|
|
|
|
|
|
|
|
|
|
public class Entertainment : Module
|
2022-01-02 21:56:14 +02:00
|
|
|
{
|
2023-07-29 15:14:52 +03:00
|
|
|
public Entertainment(Core core) : base(core) { }
|
2023-01-18 02:07:48 +02:00
|
|
|
|
2023-07-29 15:14:52 +03:00
|
|
|
public override void ConfigureServices(IServiceCollection services)
|
|
|
|
|
{
|
|
|
|
|
services.AddSingleton<IGuessCache, GuessCache>();
|
2022-01-02 21:56:14 +02:00
|
|
|
}
|
|
|
|
|
}
|