-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathlaunch.sh
53 lines (43 loc) · 1.37 KB
/
launch.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
ver="1.0"
if [ "$1" = "--help" ]; then
echo -e "
\033[01;31m Tween Telegram Bot \033[0m
\033[01;33m By\033[0m \033[01;30mThis_Is_Amir \033[0m
\033[01;34m --help : Show This Msg \033[0m
\033[01;34m --about : Show Bot Information \033[0m
\033[01;34m --Update : Sync Bot With Master Repo \033[0m"
elif [ "$1" = "--about" ]; then
echo -e "
\033[01;31m Tween Telegram Bot \033[0m
\033[01;33m By\033[0m \033[01;34mThis_Is_Amir \033[0m
\033[01;30m $ver \033[0m
\033[01;31m A Fun Telegram Bot Written In PY\033[0m"
elif [ "$1" = "install" ]; then
sudo pip install pyTelegramBotAPI
sudo pip install telebot
sudo pip install logging
sudo apt-get install python2.7
git clone https://github.com/ThisIsAmir/TweenRoBot.git
cd TweenRoBot
elif [ "$1" = "fix" ]; then
cd $HOME
sudo pip install pyTelegramBotAPI
git clone https://github.com/eternnoir/pyTelegramBotAPI.git
cd pyTelegramBotAPI
sudo python setup.py install
pip install pytelegrambotapi --upgrade
cd $HOME
cd TweenRoBot
elif [ "$1" = "--Update" ]; then
git pull
echo -e "\033[01;31m Bot Successful Update \033[0m"
else
echo -e "
\033[01;31m Tween Telegram Bot \033[0m
\033[01;33m By\033[0m \033[01;34mThis_Is_Amir \033[0m
\033[01;30m $ver \033[0m"
while true; do
nohup python2.7 bot.py
sleep 0.5
done
fi