From 768ff75e00b2f9b64bd60cb2cb9d1bfcd07e793f Mon Sep 17 00:00:00 2001 From: Wizzard <25581244+Wizzard@users.noreply.toomuchslop.com> Date: Thu, 13 Jul 2023 11:43:40 -0400 Subject: [PATCH] The rest --- .gitignore | 37 +++++++++++++++++++++++++++++++++++++ package.json | 8 ++++++++ scripts/start.sh | 2 ++ scripts/start_windows.bat | 1 + update.sh | 1 + 5 files changed, 49 insertions(+) create mode 100644 .gitignore create mode 100644 package.json create mode 100755 scripts/start.sh create mode 100644 scripts/start_windows.bat create mode 100644 update.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c38344c --- /dev/null +++ b/.gitignore @@ -0,0 +1,37 @@ +# Ignore node modules +node_modules/ + +# Ignore Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* + +# Ignore runtime data +pids +*.pid +*.seed +*.pid.lock + +# Ignore directories created by 'npm', 'yarn' or other development tools +.jest/ +coverage/ +.nyc_output/ + +# Ignore generated build directory +/dist + +# Ignore dotenv environment variable files +.env +.env.test +.env.production + +# Ignore the config file +config.json +package-lock.json + +# Ignore all dotfiles +.* +!/.gitignore diff --git a/package.json b/package.json new file mode 100644 index 0000000..15b0d62 --- /dev/null +++ b/package.json @@ -0,0 +1,8 @@ +{ + "dependencies": { + "discord-rpc": "^4.0.1", + "pm2": "^5.2.2", + "pretty-ms": "^7.0.1", + "request-promise": "^4.2.6" + } +} diff --git a/scripts/start.sh b/scripts/start.sh new file mode 100755 index 0000000..a4dadd4 --- /dev/null +++ b/scripts/start.sh @@ -0,0 +1,2 @@ +#node main.js > /dev/null 2>&1 & +./node_modules/.bin/pm2 start main.js diff --git a/scripts/start_windows.bat b/scripts/start_windows.bat new file mode 100644 index 0000000..21739ca --- /dev/null +++ b/scripts/start_windows.bat @@ -0,0 +1 @@ +./node_modules/.bin/pm2.cmd start main.js diff --git a/update.sh b/update.sh new file mode 100644 index 0000000..d0aed61 --- /dev/null +++ b/update.sh @@ -0,0 +1 @@ +git pull