Add message counting and date-bounded scrapes

This commit is contained in:
Fisto
2026-09-16 12:06:34 +02:00
parent f14f067413
commit fae754fba0
21 changed files with 410 additions and 22 deletions
+10
View File
@@ -96,6 +96,16 @@ export interface ScrapeMeta {
finishedAt?: string | null;
/** Absolute destination for downloaded files. Null means the local `media/` folder. */
downloadDir?: string | null;
/** Lower message-ID boundary (exclusive), derived from the from-date. */
afterId?: string | null;
/** Upper message-ID boundary; the walk starts just below it. */
beforeId?: string | null;
/** From-date as ISO, for display in history. */
fromDate?: string | null;
/** To-date as ISO, for display in history. */
toDate?: string | null;
/** Discord search total for the range, when known (slopbot only). */
estimatedMessages?: number | null;
}
export function emptyMediaCounts(): Record<MediaKind, number> {