speaks better
This commit is contained in:
parent
e480a1b9b8
commit
1ebc8de0a9
4
12345.sh
4
12345.sh
|
@ -231,7 +231,7 @@ while true; do
|
||||||
( ## SUB PROCESS
|
( ## SUB PROCESS
|
||||||
COINS=$($MY_PATH/tools/jaklis/jaklis.py -k ~/.zen/tmp/coucou/${MOATS}.secret.key balance)
|
COINS=$($MY_PATH/tools/jaklis/jaklis.py -k ~/.zen/tmp/coucou/${MOATS}.secret.key balance)
|
||||||
echo "+++ WALLET BALANCE _ $COINS (G1) _"
|
echo "+++ WALLET BALANCE _ $COINS (G1) _"
|
||||||
[[ $COIN == "" || $COIN == "null" ]] && $MY_PATH/tools/jaklis/jaklis.py -k ~/.zen/tmp/coucou/${MOATS}.secret.key -n "https://data.gchange.fr" send -d "${G1PUB}" -t "BRO." -m "TAPA DE JUNE ? VA AVEC >>> https://cesium.app >>> (ᵔ◡◡ᵔ) FLASHER TON G1VISA "
|
[[ $COINS == "" || $COINS == "null" ]] && $MY_PATH/tools/jaklis/jaklis.py -k ~/.zen/tmp/coucou/${MOATS}.secret.key -n "https://data.gchange.fr" send -d "${G1PUB}" -t "BRO." -m "TAPA DE JUNE ? VA AVEC >>> https://cesium.app >>> (ᵔ◡◡ᵔ) FLASHER TON G1VISA "
|
||||||
end=`date +%s`
|
end=`date +%s`
|
||||||
echo "G1WALLET (☓‿‿☓) Execution time was "`expr $end - $start` seconds.
|
echo "G1WALLET (☓‿‿☓) Execution time was "`expr $end - $start` seconds.
|
||||||
) &
|
) &
|
||||||
|
@ -241,7 +241,7 @@ while true; do
|
||||||
## ARCHIVE TOCTOC ${WHAT}S KEEP LOG (TODO : ERASE)
|
## ARCHIVE TOCTOC ${WHAT}S KEEP LOG (TODO : ERASE)
|
||||||
########################################
|
########################################
|
||||||
mkdir -p ~/.zen/game/players/.toctoc/
|
mkdir -p ~/.zen/game/players/.toctoc/
|
||||||
ISTHERE=$(ls -t ~/.zen/game/players/.toctoc/*.${G1PUB}.ipns.key 2>/dev/null | tail -n 1)
|
ISTHERE=$(ls -t ~/.zen/game/players/.toctoc/*.${G1PUB}.ipns.key 2>/dev/null | tail -n 1 | cut -d '.' -f 1)
|
||||||
TTIME=$(echo $ISTHERE | rev | cut -d '.' -f 4 | cut -d '/' -f 1 | rev)
|
TTIME=$(echo $ISTHERE | rev | cut -d '.' -f 4 | cut -d '/' -f 1 | rev)
|
||||||
if [[ ! $ISTHERE ]]; then
|
if [[ ! $ISTHERE ]]; then
|
||||||
echo "${APPNAME} 1ST TOCTOC : ${MOATS}"
|
echo "${APPNAME} 1ST TOCTOC : ${MOATS}"
|
||||||
|
|
|
@ -56,7 +56,7 @@ CHOICE="$3"
|
||||||
PSEUDO=$(cat ~/.zen/game/players/${PLAYER}/.pseudo 2>/dev/null)
|
PSEUDO=$(cat ~/.zen/game/players/${PLAYER}/.pseudo 2>/dev/null)
|
||||||
espeak "Hello $PSEUDO"
|
espeak "Hello $PSEUDO"
|
||||||
|
|
||||||
(cd $MY_PATH && git pull && espeak "code ok") &
|
( cd $MY_PATH && git pull ) &
|
||||||
|
|
||||||
G1PUB=$(cat ~/.zen/game/players/${PLAYER}/.g1pub 2>/dev/null)
|
G1PUB=$(cat ~/.zen/game/players/${PLAYER}/.g1pub 2>/dev/null)
|
||||||
[[ $G1PUB == "" ]] && espeak "ERROR NO G 1 PUBLIC KEY FOUND - EXIT" && exit 1
|
[[ $G1PUB == "" ]] && espeak "ERROR NO G 1 PUBLIC KEY FOUND - EXIT" && exit 1
|
||||||
|
@ -85,6 +85,11 @@ if [ $URL ]; then
|
||||||
CHOICE="$IMPORT"
|
CHOICE="$IMPORT"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
( ## SUB PROCESS
|
||||||
|
# Get PLAYER wallet amount
|
||||||
|
COINS=$($MY_PATH/tools/jaklis/jaklis.py -k ~/.zen/game/players/${PLAYER}/secret.dunikey balance | cut -d '.' -f 1)
|
||||||
|
[[ $COINS == "" || $COINS == "null" ]] && espeak "Missing coins. Free Run." || espeak "You have $COINS Coins"
|
||||||
|
)
|
||||||
|
|
||||||
# GET SCREEN DIMENSIONS
|
# GET SCREEN DIMENSIONS
|
||||||
screen=$(xdpyinfo | grep dimensions | sed -r 's/^[^0-9]*([0-9]+x[0-9]+).*$/\1/')
|
screen=$(xdpyinfo | grep dimensions | sed -r 's/^[^0-9]*([0-9]+x[0-9]+).*$/\1/')
|
||||||
|
@ -136,7 +141,7 @@ fi
|
||||||
ISADDING=$(ps auxf --sort=+utime | grep -w 'ipfs add' | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1)
|
ISADDING=$(ps auxf --sort=+utime | grep -w 'ipfs add' | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1)
|
||||||
ISPUBLISHING=$(ps auxf --sort=+utime | grep -w 'ipfs name publish' | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1)
|
ISPUBLISHING=$(ps auxf --sort=+utime | grep -w 'ipfs name publish' | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1)
|
||||||
[[ $ISADDING || $ISPUBLISHING ]] \
|
[[ $ISADDING || $ISPUBLISHING ]] \
|
||||||
&& espeak "I P F S progressing. Please try again later" && exit 1
|
&& espeak "I P F S not ready. Wait and try again" && exit 1
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
espeak "restart I P F S daemon"
|
espeak "restart I P F S daemon"
|
||||||
|
|
Loading…
Reference in New Issue