// Typescript: import { ClusterManager } from 'discord-hybrid-sharding' const { ClusterManager } = require('discord-hybrid-sharding'); const config = require("./config.json") const manager = new ClusterManager(`${__dirname}/bot.js`, { totalShards: 'auto', // or numeric shard count /// Check below for more options shardsPerClusters: 2, // 2 shards per process totalClusters: 2, mode: 'process', // you can also choose "worker" token: config.discord.token, }); manager.on('clusterCreate', cluster => console.log(`Launched Cluster ${cluster.id}`)); manager.spawn({ timeout: -1 });