mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
23 lines
890 B
C#
23 lines
890 B
C#
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 Kruzya.TelegramBot.Core.Options;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using West.Entertainment.Options;
|
|
|
|
|
|
namespace West.Entertainment
|
|
{
|
|
public class Entertainment : Module
|
|
{
|
|
public Entertainment(Core core) : base(core) { }
|
|
|
|
public override void ConfigureServices(IServiceCollection services)
|
|
{
|
|
services.AddSingleton<IGuessCache, GuessCache>();
|
|
services.AddScoped<NsfwOption>();
|
|
}
|
|
}
|
|
} |