// Einstiegspunkt — startet Discord-Bot, Webserver und den Wochen-Rückblick-Scheduler import { startBot } from './bot/client.js'; import { startWebServer } from './web/server.js'; import { scheduleWeeklyRecap } from './bot/weekly-recap.js'; import { startWatchdog } from './bot/watchdog.js'; import { scheduleBackups } from './backup.js'; import { startServerMonitor } from './bot/server-monitor.js'; import { startLsFarm } from './bot/ls-farm.js'; import { startRadio } from './bot/radio.js'; import { startGiveaways } from './bot/giveaways.js'; import { startScheduledPosts } from './web/scheduled-posts.js'; import { startSocialNotify } from './bot/social-notify.js'; import { startBirthdays } from './bot/birthdays.js'; import { scheduleRepoBackups } from './repo-backup.js'; process.on('unhandledRejection', (error) => { console.error('[main] Unhandled Rejection:', error); }); try { const client = await startBot(); await startWebServer(client); scheduleWeeklyRecap(client); startWatchdog(client); scheduleBackups(client); startServerMonitor(client); startLsFarm(client); startRadio(client); startGiveaways(client); startScheduledPosts(client); startSocialNotify(client); startBirthdays(client); scheduleRepoBackups(); } catch (error) { console.error('[main] Start fehlgeschlagen:', error); process.exit(1); }