forked from InsiderJanggo/azunyan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.bat
42 lines (38 loc) · 776 Bytes
/
run.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
@echo off
color 0f
:: The main selection panel
:selection
title azunyan, program selection
cls
echo selection
echo --------------
echo.
echo options:
echo - 1. start [starts the main bot]
echo - 2. dev [starts the bot in !nodemon!]
echo.
echo --------------
echo.
pause >nul
set /p type=
:: Check input and goto the input
if %type%==start goto programStart
if %type%==1 goto programStart
if %type%==dev goto development
if %type%==2 goto development
:: If none are found go back to selection
goto selection
:: run script
:programStart
title azunyan, program starter
cls
echo program starting....
node ./index.js
pause
:: nodemon script
:development
title azunyan, program development starter
cls
echo program starting in development....
nodemon ./index.js
pause