-
Notifications
You must be signed in to change notification settings - Fork 119
/
start
52 lines (46 loc) · 2.61 KB
/
start
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
51
52
#!/bin/bash
_get_repolink () {
local regex
regex='(https?)://github.com/.+/.+'
if [[ $UPSTREAM_REPO == "thunderversiontwo" ]]
then
echo "aHR0cHM6Ly9naXRodWIuY29tL1RodW5kZXJnYW5nL3RodW5kZXJ1c2VyYm90L2FyY2hpdmUvbWFzdGVyLnppcA==" | base64 -d
elif [[ $UPSTREAM_REPO =~ $regex ]]
then
if [[ $UPSTREAM_REPO_BRANCH ]]
then
echo "${UPSTREAM_REPO}/archive/${UPSTREAM_REPO_BRANCH}.zip"
else
echo "${UPSTREAM_REPO}/archive/master.zip"
fi
else
echo "Something Went Wrong.. Please Get Help From @thunderuserbotchat "
fi
}
_set_bot () {
local zipfilepath
zipfilepath="thunderuserbot.zip"
wget -q $(_get_repolink) -O "$zipfilepath"
THUNDERPATH=$(zipinfo -1 "$zipfilepath" | grep -v "/.");
unzip -qq "$zipfilepath"
rm -rf "$zipfilepath"
sleep 5
cd $THUNDERPATH
python3 ../nandydark/updater.py ../requirements.txt requirements.txt
echo "
████████ ██ ██ ██ ██ ███ ██ ██████ ███████ ██████
██ ██ ██ ██ ██ ████ ██ ██ ██ ██ ██ ██
██ ███████ ██ ██ ██ ██ ██ ██ ██ █████ ██████
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██ ██ ██ ██████ ██ ████ ██████ ███████ ██ ██
"
echo "
██ ██ ███████ ███████ ██████ ██████ ██████ ████████
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██ ██ ███████ █████ ██████ ██████ ██ ██ ██
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██████ ███████ ███████ ██ ██ ██████ ██████ ██
"
python3 -m thunderbot
}
_set_bot