can i do otherwise than `node index.js` to relaunch my bot ?

i would like to stop stop and restart my bot by doing node index.js, do you know if there is a something that i can do ? Thinks.
8 Replies
d.js docs
d.js docs2y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
Hugo4774
Hugo47742y ago
-- discord.js@12.5.1 v14.15.3
d.js docs
d.js docs2y ago
Version 14 has released! Please update at your earliest convenience. • Update: npm rm discord.js npm i discord.jsUpdate guide (use CTRL + F to search for the old method or property)
Hugo4774
Hugo47742y ago
why should i pass to the next version ?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Hugo4774
Hugo47742y ago
i already got it, thinks. But you have to launch it manually each time you have a modification that you want to refresh :/ you mean that if i stay in this version, my discord bot won't launch ? oh s***, when this will happen ? aaaaAAAAaaaaa
Dagan
Dagan2y ago
You can install nodemon Every time you make a change in your files it will automatically restart
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View