I am trying to make a kill switch for my Discord Bot that uses PM2 to keep it running. After I use the command, PM2 just restarts the bot. How do I kill the process until I restart it manually?
try to best experimentand expecting best suggestions
I am trying to make a kill switch for my Discord Bot that uses PM2 to keep it running. After I use the command, PM2 just restarts the bot. How do I kill the process until I restart it manually?
try to best experimentand expecting best suggestions
Copyright © 2021 Jogjafile Inc.
You can pass
--no-autorestartflag to your pm2 command when you run your script.