feat(S3): unify event dispatch with SQLite dedup, interaction ACK and event_id replies

This commit is contained in:
2026-11-09 22:06:34 +08:00
parent 02c534b0ef
commit 968536e5b6
13 changed files with 706 additions and 61 deletions
+5
View File
@@ -60,6 +60,11 @@ builder.Services.AddSingleton<FunGameQueryService>();
builder.Services.AddScoped<MessageSender>();
builder.Services.AddScoped<RainBotService>();
builder.Services.AddSingleton<BotMessageQueue>();
builder.Services.AddSingleton<IBotMessageSink>(sp => sp.GetRequiredService<BotMessageQueue>());
builder.Services.AddSingleton<IEventDeduplicationStore, EventDeduplicationStore>();
builder.Services.AddSingleton<IInteractionAckService, InteractionAckService>();
builder.Services.AddSingleton<IQQEventDispatcher, QQEventDispatcher>();
builder.Services.AddHostedService<ProcessedEventCleanupService>();
builder.Services.AddHostedService<BotMessageBackgroundService>();
WebApplication app = builder.Build();