mirror of
https://github.com/arthur-pbty/flint.git
synced 2026-08-01 20:29:03 +02:00
- 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
13 lines
541 B
TypeScript
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>;
|
|
} |