forked from The-HellBot/HellBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
HELL
36 lines (31 loc) · 808 Bytes
/
HELL
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
#!/bin/bash
_hell_zip () {
if [[ $GIT_REPO ]]
then
echo "https://github.com/${GIT_REPO}/archive/master.zip"
else
echo "aHR0cHM6Ly9naXRodWIuY29tL1RoZS1IZWxsQm90L1BsdWdpbnMtVC9hcmNoaXZlL21hc3Rlci56aXA=" | base64 -d
fi
}
_library () {
if [[ $BOT_LIBRARY == "pyrogram" ]]
then
python3 -m PyrogramHell
else
python3 -m TelethonHell
fi
}
_starter () {
local hellpath
hellpath="Plugins.zip"
echo "••• DOWNLOADING HELLBOT •••"
wget -q $(_hell_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 •••"
_library
}
_starter