discord_bot/sharder.js

9 lines
297 B
JavaScript

const { ShardingManager } = require("discord.js");
const manager = new ShardingManager("./index.js", {
token: require("./config").token,
totalShards: 1,
shardArgs: process.argv
});
manager.on('shardCreate', shard => console.log(`DCKN Shard #${shard.id} gestartet!`));
manager.spawn();