woomy-v2/bot/shardLauncher.js

13 lines
302 B
JavaScript
Raw Normal View History

2020-08-18 04:58:36 +00:00
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();