mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Change how the Sharding works (Auto Shard Count)
This commit is contained in:
+5
-2
@@ -1,3 +1,6 @@
|
||||
const Discord = require('discord.js');
|
||||
const Manager = new Discord.ShardingManager('./index.js');
|
||||
Manager.spawn(1);
|
||||
const config = require('./config.json');
|
||||
const Manager = new Discord.ShardingManager('./index.js', {
|
||||
token: config.token
|
||||
});
|
||||
Manager.spawn();
|
||||
Reference in New Issue
Block a user