How to make a bot on js start automatically with the system?

  • 0
    I need the script to start automatically when the system starts up and not turn off while the system is running.
    the script is located here /home/user/bot/bot.js
    I need it to execute one-time command screen node /home/user/bot/bot.js
    and so that every system start
    JavaScript Anonymous, Apr 1, 2020

  • 1 Answers
  • 0
    1.crontab (@reboot ...)

    2.systemd

    3.rc.local



    ubuntu run command after startup

    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!