-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathBomBus.sh
40 lines (34 loc) · 1.04 KB
/
BomBus.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
#!/usr/bin/env bash
cd $HOME/BomBus
install() {
cd tg
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get install g++-4.7 c++-4.7
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev lua-socket lua-sec lua-expat libevent-dev make unzip git redis-server autoconf g++ libjansson-dev libpython-dev expat libexpat1-dev
sudo apt-get install lua-lgi
sudo apt-get install libnotify-dev
sudo apt-get install screen
sudo apt-get install tmux
wget https://valtman.name/files/telegram-cli-1222
mv telegram-cli-1222 tgcli
chmod +x tgcli
cd ..
chmod +x bot
chmod +x tg
}
if [ "$1" = "install" ]; then
install
else
if [ ! -f ./tg/tgcli ]; then
echo "tg not found"
echo "Run $0 install"
exit 1
fi
echo -e "\033[38;5;208m"
echo -e " > by @Sc0rpion Source :D "
echo -e " \033[0;00m"
echo -e "\e[36m"
./tg/tgcli -s ./bot/bot.lua -l 1 -E $@
fi