aboutsummaryrefslogtreecommitdiff
path: root/start.bat
diff options
context:
space:
mode:
authorSin-MacBook <[email protected]>2020-08-10 23:44:20 +0200
committerSin-MacBook <[email protected]>2020-08-10 23:44:20 +0200
commit2a53887abba882bf7b63aeda8dfa55fdb3ab8792 (patch)
treead7a95eb41faa6ff13c3142285cdc0eb3ca92183 /start.bat
downloadmodmail-2a53887abba882bf7b63aeda8dfa55fdb3ab8792.tar.xz
modmail-2a53887abba882bf7b63aeda8dfa55fdb3ab8792.zip
clean this up when home
Diffstat (limited to 'start.bat')
-rw-r--r--start.bat17
1 files changed, 17 insertions, 0 deletions
diff --git a/start.bat b/start.bat
new file mode 100644
index 0000000..40accb6
--- /dev/null
+++ b/start.bat
@@ -0,0 +1,17 @@
+@echo off
+
+echo Installing/updating bot dependencies
+call npm ci --only=production --loglevel=warn >NUL
+
+if NOT ["%errorlevel%"]==["0"] (
+ pause
+ exit /b %errorlevel%
+)
+
+echo Starting the bot
+call npm run start
+
+if NOT ["%errorlevel%"]==["0"] (
+ pause
+ exit /b %errorlevel%
+)