Files
flint/apps/bot/src/legacy/features/logs/repository.ts
T
Puechberty Arthur 3063796eb0 feat: introduce web dashboard with multi-bot management
- add Discord OAuth2 authentication
- allow users to register their bots via token
- implement dynamic bot start/stop system
- store bots in database (multi-tenant)
- replace single-bot env setup with scalable architecture
2026-04-18 01:39:12 +02:00

13 lines
541 B
TypeScript

import type {
LogEventConfig,
LogEventKey,
LogEventRepositoryEntry,
LogEventRow,
} from "../../types/logs.js";
export interface LogEventRepository {
listByBotGuild(botId: string, guildId: string): Promise<LogEventRow[]>;
upsertByBotGuildEvent(botId: string, guildId: string, eventKey: LogEventKey, config: LogEventConfig): Promise<void>;
upsertManyByBotGuildEvents(botId: string, guildId: string, entries: readonly LogEventRepositoryEntry[]): Promise<void>;
deleteByBotGuild(botId: string, guildId: string): Promise<void>;
}