sharding system

/
37 Replies
d.js toolkit
d.js toolkit2mo ago
devil
devilOP2mo ago
reject(new DiscordjsError(ErrorCodes.ShardingReadyDied, this.id));
^
Error [ShardingReadyDied]: Shard 0's process exited before its Client became ready.
reject(new DiscordjsError(ErrorCodes.ShardingReadyDied, this.id));
^
Error [ShardingReadyDied]: Shard 0's process exited before its Client became ready.
this is error https://sourceb.in/E95ao7PQ9e code i removed token for sourcebin
Inky
Inky2mo ago
Why are you using ShardingManager and Client in the same file?
devil
devilOP2mo ago
then where
Inky
Inky2mo ago
Separate files ShardingManager is supposed to be spawning client files
devil
devilOP2mo ago
Will it work if I don't run it or import it?
devil
devilOP2mo ago
No description
No description
No description
devil
devilOP2mo ago
this file in src folder
Inky
Inky2mo ago
Are you running the sharding manager file?
devil
devilOP2mo ago
how? like
Inky
Inky2mo ago
With node
devil
devilOP2mo ago
wait
Inky
Inky2mo ago
Or whatever you use to startup the bot
devil
devilOP2mo ago
can i run 2 files with nodemon?
Inky
Inky2mo ago
You should only be running the sharding manager file
devil
devilOP2mo ago
one time run sharding and run everytime index file?
Inky
Inky2mo ago
No
devil
devilOP2mo ago
how?
Inky
Inky2mo ago
You exclusively run the sharding manager file node, bun, ts-node, etc Whatever you use
devil
devilOP2mo ago
will it run index.ts?
No description
Inky
Inky2mo ago
Yea That’s what ShardingManager does Well, never tried it w/ ts files tbh
devil
devilOP2mo ago
lol
No description
Inky
Inky2mo ago
Looks like the sharding manager and the index file is in the same folder
devil
devilOP2mo ago
No description
devil
devilOP2mo ago
or do I need to launch it when a shard is needed?
Inky
Inky2mo ago
ShardingManager manages shards
devil
devilOP2mo ago
bot have like 5 servers
Inky
Inky2mo ago
Why are you using this then?
devil
devilOP2mo ago
wdym
Samtino
Samtino2mo ago
sharding is recommended for once you exceed 1000 servers...and required when you hit 2500 servers
devil
devilOP2mo ago
then, i dont need this now?
Samtino
Samtino2mo ago
correct....you have no reason to shard at all not for a long time
devil
devilOP2mo ago
ok tysm
Sabu
Sabu2mo ago
what is the goal of ur bot ?
devil
devilOP2mo ago
event logging for servers like member joined, role updated and etc
Thorminate
Thorminate4w ago
you should probably mark this as solved
d.js toolkit
d.js toolkit4w ago
The thread owner has marked this issue as solved.

Did you find this page helpful?