forked from SELENEBOTSTG/SELENEBOTSDEPLOYE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Selene
46 lines (40 loc) · 1.42 KB
/
Selene
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
_get_repolink () {
local regex
regex='(https?)://github.com/.+/.+'
if [[ $SELENE_REPO == "SELENEBOT" ]]
then
echo "aHR0cHM6Ly9naXRodWIuY29tL0RBUkstTEVHRU5ELVBSTy9QUk8tRFJBR09OUk9CT09UL2FyY2hpdmUvbWFpbi56aXA=" | base64 -d
elif [[ $SELENE_REPO == "SELENEBOT" ]]
then
echo "aHR0cHM6Ly9naXRodWIuY29tL0RBUkstTEVHRU5ELVBSTy9QUk8tRFJBR09OUk9CT09UL2FyY2hpdmUvbWFpbi56aXA=" | base64 -d
elif [[ $SELENE_REPO =~ $regex ]]
then
if [[ $SELENE_REPO_BRANCH ]]
then
echo "${SELENE_REPO}/archive/${SELENE_REPO_BRANCH}.zip"
else
echo "${SELENE_REPO}/archive/Pro.zip"
fi
else
echo "aHR0cHM6Ly9naXRodWIuY29tL0RBUkstTEVHRU5ELVBSTy9QUk8tRFJBR09OUk9CT09UL2FyY2hpdmUvbWFpbi56aXA=" | base64 -d
fi
}
_selene_bot () {
local zippath
zippath="Selene.zip"
echo " 🔰 Downloading SELENE Bot Source Code... 🔰"
wget -q $(_get_repolink) -O "$zippath"
echo " 📍Unpacking Data...📍"
SELENEPATH=$(zipinfo -1 "$zippath" | grep -v "/.");
unzip -qq "$zippath"
echo " 🏅 Download Complete Now Installing 🏅"
echo " ✨ INSTALLING SELENEBOT ✨"
rm -rf "$zippath"
sleep 5
cd $SELENEPATH
echo " ⚜️Starting SELENEẞøt⚜️ "
echo " ♥️ NOW WAIT 3 MIN INSTALLING ALL PLUGIN ♥️"
python3 ../setup/updater.py ../requirements.txt requirements.txt
python3 -m userbot
}
_selene_bot