import { startBot } from "./bot"; import { loadConfig } from "./config"; export async function bootstrap(): Promise { const config = loadConfig(); await startBot(config); } if (require.main === module) { void bootstrap().catch((error: unknown) => { console.error("Failed to start bot:", error); process.exit(1); }); }