-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathbeyond.sh
More file actions
84 lines (77 loc) · 2.14 KB
/
beyond.sh
File metadata and controls
84 lines (77 loc) · 2.14 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#!/usr/bin/env bash
cd $HOME/BDMessenger
install() {
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install lua5.1 luarocks lua-socket lua-sec redis-server curl
sudo luarocks install oauth
sudo luarocks install redis-lua
sudo luarocks install lua-cjson
sudo luarocks install ansicolors
sudo luarocks install serpent
}
function print_logo() {
green " ____ ____ _____"
green " | _ )| _ \ |_ _|___ ____ __ __"
green " | _ \| |_) ) | |/ .__| _ \_| \/ |"
green " |____/|____/ |_|\____/\_____|_/\/\_|"
echo -e "\n\e[0m"
}
function logo_play() {
declare -A txtlogo
seconds="0.010"
txtlogo[1]=" ____ ____ _____"
txtlogo[2]="| _ )| _ \ |_ _|___ ____ __ __"
txtlogo[3]="| _ \| |_) ) | |/ .__| _ \_| \/ |"
txtlogo[4]="|____/|____/ |_|\____/\_____|_/\/\_|"
printf "\e[31m\t"
for i in ${!txtlogo[@]}; do
for x in `seq 0 ${#txtlogo[$i]}`; do
printf "${txtlogo[$i]:$x:1}"
sleep $seconds
done
printf "\n\t"
done
printf "\n"
echo -e "\e[0m"
}
function beyondteam() {
echo -e "\e[0m"
green " >>>> We Are Not Attacker "
green " >>>> We Are Not Alliance "
white " >>>> We Are Programmer "
white " >>>> We Are The Best "
red " >>>> We Are Family "
red " >>>> @BeyondTeam "
echo -e "\e[0m"
}
red() {
printf '\e[1;31m%s\n\e[0;39;49m' "$@"
}
green() {
printf '\e[1;32m%s\n\e[0;39;49m' "$@"
}
white() {
printf '\e[1;37m%s\n\e[0;39;49m' "$@"
}
update() {
git pull
}
if [ "$1" = "install" ]; then
print_logo
beyondteam
logo_play
install
elif [ "$1" = "update" ]; then
logo_play
beyondteam
update
exit 1
else
print_logo
beyondteam
logo_play
green "Beyond Messenger Bot running..."
#sudo service redis-server restart
lua ./bot/bot.lua
fi