Hello, quick problem with package status-sharding
So I have a shutdown command, which should stop the bot in a specified time and then calls
process.exit(0);
Where I host my bot, that usually results in a restart becuase the programm "crashed" and it autorestarts.
But with the package status-sharding installed I get this error: https://sourceb.in/aOqAh4NyEd
And the bot never shuts down / restarts properly.
How do I fix it?5 Replies
I guess I need to kill the cluster first but how do I do that?
where do you have that process.exit
in cluster or on manager?
as its a command i assume you do it in a cluster, you should do it on a manager
<Client>.cluster.evalOnManager(() => process.exit(0));yes in a command
yes, sent you solution
because manager and clusters are not one
ty it works :)