#how to make discord bot restart command

1 messages · Page 1 of 1 (latest)

astral elm
#

did you did help for this?

hexed bolt
#

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

restive dock
hexed bolt
#

r u running bot with pm2?

#

or node?

#

okay i gonna try it

astral elm
#

what do you really want to do?

hexed bolt
#

i just want to restart my bot from slash command

#

finally that work for me. Thank you so much.