Update starting method
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user