Skip to content

Commit

Permalink
Removed debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
SiebeBaree committed Mar 14, 2024
1 parent cccf6b3 commit 655afef
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions bot/src/sharder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ import process from 'node:process';
import { ClusterManager } from 'discord-hybrid-sharding';
import logger from './utils/logger';

const SHARDS_PER_CLUSTER = Number.parseInt(process.env.SHARDS_PER_CLUSTER!, 10);
const TOTAL_CLUSTERS = Number.parseInt(process.env.TOTAL_CLUSTERS!, 10);

const manager = new ClusterManager(join(__dirname, 'bot.ts'), {
totalShards:
Number.parseInt(process.env.SHARDS_PER_CLUSTER!, 10) * Number.parseInt(process.env.TOTAL_CLUSTERS!, 10),
shardsPerClusters: Number.parseInt(process.env.SHARDS_PER_CLUSTER!, 10),
totalClusters: Number.parseInt(process.env.TOTAL_CLUSTERS!, 10),
totalShards: SHARDS_PER_CLUSTER * TOTAL_CLUSTERS,
shardsPerClusters: SHARDS_PER_CLUSTER,
totalClusters: TOTAL_CLUSTERS,
mode: 'process',
token: process.env.DISCORD_TOKEN,
});
Expand Down

0 comments on commit 655afef

Please sign in to comment.