Skip to content

Commit

Permalink
Removed/Added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Electrocute4u committed Dec 22, 2022
1 parent 331c5b3 commit e16f310
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const Cluster = require('discord-hybrid-sharding');

// import and require .env reference
require('dotenv').config();
const {publicToken, devToken} = process.env;
const { publicToken, devToken } = process.env;

const fs = require("fs")
const config = JSON.parse(fs.readFileSync(`./config.json`, 'utf8'))
Expand All @@ -14,12 +14,12 @@ let token = config.dev == false ? publicToken : devToken
delete require.cache[require.resolve("../../utils/functions")];
const { CustomLog } = require("./utils/functions")

// Creating the Shard Manager
const manager = new Cluster.Manager(`${__dirname}/bot.js`, {
totalShards: `auto`, // x or 'auto'
/// Check below for more options
totalShards: `auto`,
shardsPerClusters: 2,
// totalClusters: 7,
mode: 'process', // you can also choose "worker"
mode: 'process',
token: token,
});

Expand Down

0 comments on commit e16f310

Please sign in to comment.