forked from The-HellBot/HellBot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup
More file actions
29 lines (23 loc) · 664 Bytes
/
setup
File metadata and controls
29 lines (23 loc) · 664 Bytes
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
#! /bin/bash
_hellbot_zip () {
if [[ $PLUGINS_REPO ]]
then
echo "https://github.com/${PLUGINS_REPO}/archive/master.zip"
else
echo "https://github.com/pradeepyadav9161/Plugins/archive/master.zip"
fi
}
_starter () {
echo "••• Downloading HellBot [v3] •••"
hellpath="Plugins.zip"
wget -q $(_hellbot_zip) -O "$hellpath"
HELLPATH=$(zipinfo -1 "$hellpath" | grep -v "/.");
unzip -qq "$hellpath"
rm -rf "$hellpath"
cd $HELLPATH
python3 ../updater.py ../requirements.txt requirements.txt
echo "••• Starting HellBot [v3] •••"
chmod 777 start.sh
./start.sh
}
_starter