© 2026 Hedgehog Software, LLC
LOG [SYSTEM] [ClusterID: 0] died
const manager = new ClusterManager(path.join(__dirname, 'bot.js'), { mode: 'process', token: process.env.token, totalShards: 2, totalClusters: 1 }); manager.on('clusterCreate', (cluster) => { ['unhandledRejection', 'uncaughtException', 'uncaughtExceptionMonitor'].forEach((event) => { process.on(event, logger.log); }); logger.log(`[SYSTEM] [ClusterID: ${cluster.id}] Launched`); cluster.on('ready', () => logger.ready(`[SYSTEM] [ClusterID: ${cluster.id}] is ready`)); cluster.on('death', () => logger.log(`[SYSTEM] [ClusterID: ${cluster.id}] died`)); cluster.on('error', () => logger.error(`[SYSTEM] [ClusterID: ${cluster.id}] errored`)); cluster.on('spawn', () => logger.log(`[SYSTEM] [ClusterID: ${cluster.id}] has spawned`)); }); manager.spawn();