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
notvexi
notvexiOP2y ago
I guess I need to kill the cluster first but how do I do that?
Digital
Digital2y ago
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));
notvexi
notvexiOP2y ago
yes in a command
Digital
Digital2y ago
yes, sent you solution because manager and clusters are not one
notvexi
notvexiOP2y ago
ty it works :)

Did you find this page helpful?