This project is to restart nodemon automatically in case of a crash.
•Node.js
•Nodemon (installable with:
npm i -g nodemon
)
Edit the config.json file as in the example:
{
"file":"/sdcard/bot/main.js",
"pathToWatch":"/sdcard/bot"
}
Copy the start.js and config.json files to your project folder and to start it use:
node start.js