-
Notifications
You must be signed in to change notification settings - Fork 1
/
start.sh
27 lines (18 loc) · 1.08 KB
/
start.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
#bin #!bash
###### Adding Files ######
wget -O /app/tobrot/aria2/dht.dat https://github.com/P3TERX/aria2.conf/raw/master/dht.dat
wget -O /app/tobrot/aria2/dht6.dat https://github.com/P3TERX/aria2.conf/raw/master/dht6.dat
TRACKER=`curl -Ns https://raw.githubusercontent.com/XIU2/TrackersListCollection/master/all.txt -: https://ngosang.github.io/trackerslist/trackers_all_http.txt -: https://newtrackon.com/api/all -: https://raw.githubusercontent.com/DeSireFire/animeTrackerList/master/AT_all.txt -: https://torrends.to/torrent-tracker-list/?download=latest | awk '$1' | tr '\n' ',' | cat`
ran=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 12 | head -n 1)
###### Done Addding Files ######
if [[ -n $RCLONE_CONFIG_URL ]]; then
echo "Rclone config detected 📁📁"
wget -q $RCLONE_CONFIG_URL -O /app/rclone.conf
fi
if [[ -n $CONFIG_ENV_URL ]]; then
echo " Found config.env File 📁📁 "
wget -q $CONFIG_ENV_URL -O /app/config.env
fi
if [ -f .env ] ; then set -o allexport; source .env; set +o allexport ; fi
echo "Starting Your Bot... ♻️♻️"
python3 update.py && python3 -m tobrot