-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
10c9bc5
commit 76e392c
Showing
5 changed files
with
171 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,46 @@ | ||
while true; do | ||
moon jackbot.moon "${@}" | ||
sleep 10s | ||
done | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters