-
Notifications
You must be signed in to change notification settings - Fork 1
/
ronja.sh
34 lines (28 loc) · 854 Bytes
/
ronja.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
#!/bin/bash
case $1 in
postinstall)
mkdir ./_SECRET
cp ./_SECRET.example/config.js ./_SECRET/config.js
echo "Please open ./_SECRET/config.js in your favourite editor and add your"
echo "clientId, guildId and token at least."
echo ""
echo "After that run: $0 postupdate"
echo ""
;;
postupdate)
npm install
node ./deploy-commands.js
echo "If there was no error message you are ready to run: $0 start"
echo ""
;;
start)
node ./index.js
;;
*)
echo "Please run $0 with one of the following commands:"
echo "- $0 postinstall | after installation"
echo "- $0 postupdate | after update"
echo "- $0 start | to run the bot"
echo ""
;;
esac