This repository has been archived by the owner on Sep 29, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 443
/
termux_install.sh
60 lines (53 loc) · 2.95 KB
/
termux_install.sh
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
54
55
56
57
58
59
60
clear
echo -E " ******,*,. ... "
echo -E " /////*****,*... . . "
echo -E " . . /((//*/*,*///*. . .. "
echo -E ".. . . .((*,,. .*//*. . . . .. "
echo -E ". . ../(((**((//,,/.......... .. .. .. "
echo -E ". . . ./(/, ., , . . ...... "
echo -E "..,,.... .. .. . **//*/*/*.... . . ...*,. "
echo -E " .,,,..,,,.,...... //((/. /**,. ... .. .....,*,** "
echo -E " /(/(*,/// ..,,,,,,,.,,,,,,,,*, "
echo -E ". ((((((/ ., . ..**** "
echo -E "....... */(##//((/ ,.*, ..... .,,,*** "
echo -E "......................../((##(((###( .,.,. ,.... . ,.,*/ "
echo -E " ...*, *,,...,//(((((((####(((*,.**.. **, ,*/***((# "
echo -E " *((/,***(((((((((####((//*/*,,**(//(//(//((((( "
echo -E " .(/ ,(#((((###((((((((#((/(#(*(#/(*((/((((.*,(//// "
echo -E " (((//(( (###(((((/(##(*/((.(#/##((((((/**(/(#*( "
echo -E "/////**/ /((//,*,,../(/,((((/((#(##/(*(/#%#(((/(((/. *****/ "
echo -E " .*////(/((/(/*,**/((((##((//.,####/((#(#%#(((((((/ , .**** "
echo -E ". /(//(#( (#(#(*,/#(#/#####%##(((((((/(////*, "
echo -E "........ ((/((#( /((#(((/ /((#/###%%%#(((/(((//////(( "
echo -E "........./((#(#*.... ((,(((((# /((#((#%%%/* **((. . .., "
echo -E "........./((#(/(.......((((((///(/*((#((%%%%%##(((,*/. , . "
echo -E "........./((((((......*###(((/(/*(# ####%%%%#(.*((..,. "
echo -E ".........((####(......(#(##.(#(((,*((.#%%%%##(*((/..,,*. "
echo -E "//(/***,*(###(//,,..,///#/(. /(((/((((*#%%##(/(,,,.. "
echo -E "**/**,,,,####(/**//((////(##(.*..*((/*##%%%(((,/ .,/ . "
echo -E ",,,,,,,,,#####%(,*///////(((((/(((((((###%##//*., ,/. "
echo -E ",,,,,,,,,#####%(,,,,///((((((///*.,.. (##((((#/(*///*.. "
echo -E " "
sleep 5
clear
pkg update && pkg upgrade -y
pkg install clang curl git libcrypt libffi libiconv libjpeg* libjpeg-turbo libwebp libxml2 libxslt make ndk-sysroot openssl postgresql python readline wget zlib -y
git clone https://github.com/mkaraniya/OpenUserBot.git
cd OpenUserBot
pip install --upgrade pip setuptools
pip install -r requirements.txt
mv sample_config.env config.env
mkdir -p $PREFIX/var/lib/postgresql
initdb $PREFIX/var/lib/postgresql
pg_ctl -D $PREFIX/var/lib/postgresql start
createdb botdb
createuser botuser
cd ..
echo "pg_ctl -D $PREFIX/var/lib/postgresql start" > startbot.sh
echo "cd OpenUserBot" >> startbot.sh
echo "python3 -m userbot" >> startbot.sh
chmod 755 startbot.sh
echo "Done."
echo "Now edit config.env with nano or anything you want, then run the userbot with startbot.sh"
echo "Please edit the db to postgresql://botuser:@localhost:5432/botdb"
echo "Good luck!"