File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24,20 +24,20 @@ There are additional difficulties when sharding a bot that add complexity to you
2424*/
2525
2626// Include discord.js ShardingManger
27- const { ShardingManager } = require (' discord.js' )
27+ const { ShardingManager } = require (' discord.js' );
2828
2929// Create your ShardingManger instance
3030const manager = new ShardingManager (' ./YOUR_BOT_FILE_NAME.js' , {
3131 // for ShardingManager options see:
3232 // https://discord.js.org/#/docs/main/stable/class/ShardingManager
3333 totalShards: ' auto' ,
3434 token: ' YOUR_TOKEN_GOES_HERE'
35- })
35+ });
3636
3737// Spawn your shards
38- manager .spawn ()
38+ manager .spawn ();
3939
4040// Emitted when a shard is created
41- manager .on (' shardCreate' , (shard ) => console .log (` Shard ${ shard .id } launched` ))
41+ manager .on (' shardCreate' , (shard ) => console .log (` Shard ${ shard .id } launched` ));
4242```
4343
You can’t perform that action at this time.
0 commit comments