Closed TylerBGit closed 6 years ago
On Linux, you can have it run in the background as a service, but I'm not too sure about Mac and Windows.
Please see - https://github.com/coreybutler/node-windows
This module allows users to run node.js scripts as a service.
If you could update the read-me to accommodate adding a node.js script to windows services using this tool that would be great. I think this would be useful documentation to copy and paste over to your other bots that are using node too.
Thanks for the reply.
Although the game itself only runs on Windows, the bot is intended to run on any OS that supports Node. In the future, when I have time, I could look into making a branch for this.
For Krizzieb or anyone who will run this on windows platform;
npm i -g --production windows-build-tools
which should install phytons and windows C++ Build Tools standalone.
npm install pm2
. pm2 is an process management node . forever
module is no supported on Windowspm2 start app.js --name NoobBot
. This should make the bot run without the need to open terminal all time.Also, pardon if my "term" is quite wrong as I am just hobbyist coder/code collector.
Due to no recent activity, I will be closing the issue.
Hi, i'm just wondering if i am able to keep the bot running without having to keep my terminal open. If i exit my terminal the bot logs off after about 30 seconds.