37 Replies
Why are you using ShardingManager and Client in the same file?
then where
Separate files
ShardingManager is supposed to be spawning client files
Will it work if I don't run it or import it?


this file in src folder
Are you running the sharding manager file?
how?
like
With node
wait
Or whatever you use to startup the bot
can i run 2 files with nodemon?
You should only be running the sharding manager file
one time run sharding and run everytime index file?
No
how?
You exclusively run the sharding manager file
node, bun, ts-node, etc
Whatever you use
will it run index.ts?

Yea
That’s what ShardingManager does
Well, never tried it w/ ts files tbh
lol

Looks like the sharding manager and the index file is in the same folder

or do I need to launch it when a shard is needed?
ShardingManager manages shards
bot have like 5 servers
Why are you using this then?
wdym
sharding is recommended for once you exceed 1000 servers...and required when you hit 2500 servers
then, i dont need this now?
correct....you have no reason to shard at all
not for a long time
ok
tysm
what is the goal of ur bot ?
event logging for servers
like member joined, role updated and etc
you should probably mark this as solved
The thread owner has marked this issue as solved.