-
Notifications
You must be signed in to change notification settings - Fork 45
/
anticrash.sh
38 lines (38 loc) · 1.93 KB
/
anticrash.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
#!/bin/bash
while true ; do
for entr in tabchi-*.sh ; do
entry="${entr/.sh/}"
tmux kill-session -t $entry
rm -rf ~/.telegram-cli/$entry/data/animation/*
rm -rf ~/.telegram-cli/$entry/data/audio/*
rm -rf ~/.telegram-cli/$entry/data/document/*
rm -rf ~/.telegram-cli/$entry/data/photo/*
rm -rf ~/.telegram-cli/$entry/data/sticker/*
rm -rf ~/.telegram-cli/$entry/data/temp/*
rm -rf ~/.telegram-cli/$entry/data/video/*
rm -rf ~/.telegram-cli/$entry/data/voice/*
rm -rf ~/.telegram-cli/$entry/data/profile_photo/*
rm -rf ~/.telegram-cli/$entry/data/thumb/*
rm -rf ~/.telegram-cli/tabchi-*/data/photo
rm -rf ~/.telegram-cli/tabchi-*/data/animation
rm -rf ~/.telegram-cli/tabchi-*/data/audio
rm -rf ~/.telegram-cli/tabchi-*/data/document
rm -rf ~/.telegram-cli/tabchi-*/data/sticker
rm -rf ~/.telegram-cli/tabchi-*/data/video
rm -rf ~/.telegram-cli/tabchi-*/data/voice
rm -rf ~/.telegram-cli/tabchi-*/data/profile_photo
rm -rf ~/.telegram-cli/tabchi-*/data/thumb
tmux new-session -d -s $entry "./$entr"
tmux detach -s $entry
done
echo -e "\033[38;5;600m"
echo -e " ::::::::::: :::::::: :::: :::: :::::::::: :::: :::: ::::::::: :::::::::: ::::::::: "
echo -e " :+: :+: :+: +:+:+: :+:+:+ :+: +:+:+: :+:+:+ :+: :+: :+: :+: :+:"
echo -e " +:+ +:+ +:+ +:+:+ +:+ +:+ +:+ +:+:+ +:+ +:+ +:+ +:+ +:+ +:+"
echo -e " +#+ :#: +#+ +:+ +#+ +#++:++# +#+ +:+ +#+ +#++:++#+ +#++:++# +#++:++#: "
echo -e " +#+ +#+ +#+# +#+ +#+ +#+ +#+ +#+ +#+ +#+ +#+ +#+ +#+"
echo -e " #+# #+# #+# #+# #+# #+# #+# #+# #+# #+# #+# #+# #+#"
echo -e " ### ######## ### ### ########## ### ### ######### ########## ### ###"
echo Bots Running!
sleep 1800
done