forked from IgorKowalczyk/majo.exe
-
Notifications
You must be signed in to change notification settings - Fork 1
/
start.sh
executable file
·50 lines (46 loc) · 1.07 KB
/
start.sh
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
43
44
45
46
47
48
49
50
#! /bin/bash
echo -e "--- Select a option ---"
options=(
"Start all modules (Bot & Dashboard)" # 1
"Start Bot" # 2
"Start Dashboard" # 3
"[Dev] Format Code" # 4
"[Dev] Check Code Formatting" # 5
" - Exit" #6
)
finished=
while test ! "$finished"; do
select option in "${options[@]}"; do
case "$REPLY" in
1)
echo -e "Running all modules (Bot & Dashboard)"
npm run start
continue
;;
2)
echo -e "Running Discord Bot"
npm run bot
continue
;;
3)
echo -e "Running Dashboard"
npm run dashboard
continue
;;
4)
echo -e "Formatting code"
npm run format
continue
;;
5)
echo -e "Checking code formatting"
npm run format:check
continue
;;
6)
echo -e "Exiting..."
ps -ef | grep start.sh | grep -v grep | awk '{print $2}' | xargs kill
esac
break
done
done