import { config, validateConfig } from './core/config'; import { SentinelClient } from './core/client'; import { startHealthServer } from './core/health'; validateConfig(); const client = new SentinelClient(); client.once('ready', () => { console.log(`✅ Aethex Sentinel logged in as ${client.user?.tag}`); console.log(`📡 Watching ${client.guilds.cache.size} guild(s)`); client.user?.setActivity('🛡️ Protecting the Federation', { type: 3 }); startHealthServer(client); }); process.on('unhandledRejection', (error: Error) => { console.error('❌ Unhandled Promise Rejection:', error); }); process.on('uncaughtException', (error: Error) => { console.error('❌ Uncaught Exception:', error); process.exit(1); }); client.login(config.token);