forked from AnnabelleTG/Annabelle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart
More file actions
30 lines (21 loc) · 811 Bytes
/
start
File metadata and controls
30 lines (21 loc) · 811 Bytes
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
#!/bin/bash
cyan="\033[1;36m"
reset="\033[0m"
white="\033[1;97m"
red="\033[1;91m"
echo -e "${white}[ ${red}* ${white}] ${cyan} Installing required packages !!${reset}\n"
packages=(git python)
for pkg in "${packages[@]}" ; do
if ! hash ${pkg} > /dev/null 2>&1 ; then
echo -e "\n${white}[ ${red}* ${white}] ${cyan} Installing ${pkg} ${reset}\n"
apt install "${pkg}" -y || sudo apt install "${pkg}" -y
fi
done
if [ ! -d "./annabelle" ] ; then
echo -e "\n${white}[ ${red}* ${white}] ${cyan} Cloning into Annabelle ${reset}\n"
git clone https://github.com/AnnabelleTG/Annabelle
echo -e "${white}[ ${red}* ${white}] ${cyan} Instaling pip modules !${reset}\n"
pip install -r ./Annabelle/requirements.txt
echo "Starting Annabelle!"
python3 ./Annabelle/bot.py &
python3 ./Annabelle/annabelle.py