Created
March 17, 2020 10:48
-
-
Save banghasan/3263570bf5b105f288924921c0e667b0 to your computer and use it in GitHub Desktop.
Telegram Bash Launcher
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
#!/bin/bash | |
# ganti ke path dan aplikasinya Telegram | |
telegram=/home/banghasan/data/Download/Telegram/Telegram/Telegram | |
# info program: | |
program="TBL" | |
desc="Telegram Bash Launcher" | |
versi=1.0 | |
release="17 Maret 2020" | |
programmer="bangHasan <[email protected]>" | |
website="https://www.banghasan.com" | |
channel="Telegram Grup @botphp" | |
# Start Program | |
if [ -z "$1" ] | |
then | |
echo "$program v$versi" | |
echo " $desc" | |
echo " $release" | |
echo "" | |
echo $programmer | |
echo " $website" | |
echo " Diskusi di $channel" | |
echo "" | |
echo "Berfungsi untuk menjalankan Telegram dengan multiple apps." | |
echo "" | |
echo " Format: ./tbl.sh <workdir>" | |
echo "" | |
echo "Contoh:" | |
echo " ./tbl.sh /home/data/telegram/1" | |
else | |
if [ -d "$1" ]; then | |
echo "Menjalankan Telegram" | |
$telegram -many -workdir $1 > /dev/null 2>&1 & | |
if [ $? -eq 0 ] | |
then | |
echo "... done." | |
else | |
echo "Workdir $1 : Gagal!" >&2 | |
fi | |
else | |
echo "EROR: $1 Bukan direktori!" | |
fi | |
fi | |
echo "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment