forked from Imandaneshi/jack-telegram-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
executable file
·46 lines (32 loc) · 804 Bytes
/
run.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
41
42
43
44
45
46
ver="1.0"
if [ "$1" = "--help" ]; then
echo -e "
\033[31;47mJack Telegram Bot\033[0m
\033[5mV $ver\033[0m
--no-outpot Bot won't print incoming msgs
--admin-mode Only listen to admins !
--update Sync bot with master repo
--about About bot
--help Prints this msg
"
elif [ "$1" = "--about" ]; then
echo -e "
\033[31;47mJack Telegram Bot\033[0m
By Iman Daneshi
\033[5mV $ver\033[0m
A multi purpose Telegram bot written in MoonScript !
Website: jack.seedteam.org
"
elif [ "$1" = "--Update" ]; then
git pull
else
echo -e "
\033[31;47mJack Telegram Bot\033[0m
By Iman Daneshi
\033[5mV $ver\033[0m
"
while true; do
moon jackbot.moon "${@}"
sleep 10s
done
fi