Update starting method

This commit is contained in:
Frostbide
2025-01-26 10:20:02 -08:00
parent 2dab307de0
commit 7226e07f91
3 changed files with 2 additions and 10 deletions

View File

@@ -5,7 +5,7 @@ Frostbot is a discord utility bot
## Running
To run, simply install dependencies with `npm install`
Then run the command `./startbot.sh`
Then run the command `npm run start`
## Requirements

View File

@@ -4,7 +4,7 @@
"description": "Discord utility bot",
"main": "src/index.js",
"scripts": {
"start": "node --no-warnings src/index.js",
"start": "mkdir -p src/logs && while true; do node --no-warnings src/index.js; [ $? -ne 0 ] || break; done",
"dev": "DEVELOPMENT=true node --no-warnings src/index.js"
},
"repository": {

View File

@@ -1,8 +0,0 @@
mkdir -p src/logs
while true; do
npm run start
EXIT_CODE=$?
if [ $EXIT_CODE -eq 0 ]; then
break
fi
done