#how to make discord bot restart command
1 messages · Page 1 of 1 (latest)
I m testing it
i guess it doesn't restart
i use
client.destroy().then(client.login(TOKEN)); to restart. and then i start the bot with node index.js then tired restart. the whole bot project stopped.
so i run with pm2 start
and tried to restart
i guess it doesn't restart
because i run pm2 status
there is no restart record
Because you destroy literally the whole client before it logs itself back in. 
what do you really want to do?