Files
František Musil ffa638429e Initial project setup: Bun + cheerio scraper with dev mode
- config/ with default + local (gitignored) merge pattern
- fetcher with manual redirect tracking, cookie jar, dev mode JSON logging
- cheerio parser stub ready for selectors
- telegram sender
- weekday-aware entry point

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-12 08:47:06 +02:00

21 lines
492 B
TypeScript

import defaultConfig from "./default"
let localConfig: Partial<typeof defaultConfig> = {}
try {
const local = await import("./local")
localConfig = local.default
} catch {
// no local config, that's fine
}
const config = {
...defaultConfig,
...localConfig,
days: { ...defaultConfig.days, ...localConfig.days },
telegram: { ...defaultConfig.telegram, ...localConfig.telegram },
}
export default config
export type { Config, DayUrls, TelegramConfig } from "./default"