Answers for "how to shard a discord bot"

1

how to shard a discord bot

const Discord = require('discord.js');
const Manager = new Discord.ShardingManager('./YOUR_BOT_FILE_NAME.js');
Manager.spawn(2); // This example will spawn 2 shards;
//Make this a seperate file and run this file.
Posted by: Guest on April-02-2020

Browse Popular Code Answers by Language