restart command
I know there is a client.destroy how can I make a restart command with it and do i need to do new Client
6 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OPuse pm2, then exit the process and pm2 will restart it for you
I don't want to exit the process
Just restart the bot in case of errors
that's what pm2 will do
I want to run client .detroy and then recreate the bot
I want to have a command to log off my bot and optionally run login again.
Basically turning my bot off and on
I have an express route for that
That's why i don't want to exit the process
I've told you i want an option to start stop my bot easily with api routes.
And command
Oh now you have a good point. I'll try that thanks