Extract config and types into separate files, clean up index.ts

- src/config.ts: configuration constants
- src/types.ts: TypeScript interfaces
- src/index.ts: remove section comments, streamline code

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
gavrielc
2026-01-31 19:17:40 +02:00
parent fe5ae974a3
commit 78426c764d
3 changed files with 84 additions and 209 deletions

18
src/types.ts Normal file
View File

@@ -0,0 +1,18 @@
export interface RegisteredGroup {
name: string;
folder: string;
trigger: string;
added_at: string;
}
export interface Session {
[folder: string]: string;
}
export interface NewMessage {
id: string;
chat_jid: string;
sender: string;
content: string;
timestamp: string;
}