forked from TgCatUB/catuserbot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclone.sh
More file actions
53 lines (46 loc) · 1.64 KB
/
clone.sh
File metadata and controls
53 lines (46 loc) · 1.64 KB
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
53
#!/bin/bash
# Copyright (C) 2020 by sandy1709
echo "
:'######:::::'###::::'########::::
'##... ##:::'## ##:::... ##..:::::
##:::..:::'##:. ##::::: ##:::::::
##:::::::'##:::. ##:::: ##:::::::
##::::::: #########:::: ##:::::::
##::: ##: ##.... ##:::: ##:::::::
. ######:: ##:::: ##:::: ##:::::::
:......:::..:::::..:::::..::::::::
"
echo "
'##::::'##::'######::'########:'########::'########:::'#######::'########:
##:::: ##:'##... ##: ##.....:: ##.... ##: ##.... ##:'##.... ##:... ##..::
##:::: ##: ##:::..:: ##::::::: ##:::: ##: ##:::: ##: ##:::: ##:::: ##::::
##:::: ##:. ######:: ######::: ########:: ########:: ##:::: ##:::: ##::::
##:::: ##::..... ##: ##...:::: ##.. ##::: ##.... ##: ##:::: ##:::: ##::::
##:::: ##:'##::: ##: ##::::::: ##::. ##:: ##:::: ##: ##:::: ##:::: ##::::
. #######::. ######:: ########: ##:::. ##: ########::. #######::::: ##::::
:.......::::......:::........::..:::::..::........::::.......::::::..:::::
"
FILE=/app/.git
if [ -d "$FILE" ] ; then
echo "$FILE directory exists already."
else
rm -rf userbot
rm -rf .github
rm -rf sample_config.py
git clone https://github.com/sandy1709/catuserbot cat_ub
mv cat_ub/userbot .
mv cat_ub/.github .
mv cat_ub/.git .
mv cat_ub/sample_config.py .
python ./.github/update.py
rm -rf requirements.txt
mv cat_ub/requirements.txt .
rm -rf cat_ub
fi
FILE=/app/bin/
if [ -d "$FILE" ] ; then
echo "$FILE directory exists already."
else
bash ./.github/bins.sh
fi
python -m userbot