woomy-v2/bot/shardLauncher.js
2020-08-18 14:58:36 +10:00

13 lines
No EOL
302 B
JavaScript

const discord = require("discord.js");
const config = require("../config.json");
const manager = new discord.ShardingManager("./index.js", {
totalShards: "auto",
token: config.token
});
manager.on("shardCreate", (shard) => {
console.log("Shard " + shard.id + " launched");
});
manager.spawn();