PLAYER UNPLUG procedure

This commit is contained in:
fred 2024-02-14 19:36:37 +01:00
parent 5fb54b2287
commit f12cf474bf
7 changed files with 8 additions and 4 deletions

View File

@ -124,7 +124,7 @@ for PLAYER in ${PLAYERONE[@]}; do
[[ $try == 0 ]] \ [[ $try == 0 ]] \
&& echo "PLAYER ${PLAYER} UNPLUG" \ && echo "PLAYER ${PLAYER} UNPLUG" \
&& ${MY_PATH}/../tools/PLAYER.unplug.sh ~/.zen/game/players/${PLAYER}/ipfs/moa/index.html ${PLAYER} \ && ${MY_PATH}/PLAYER.unplug.sh ~/.zen/game/players/${PLAYER}/ipfs/moa/index.html ${PLAYER} \
&& continue && continue
try=$((try-1)) try=$((try-1))
@ -200,7 +200,7 @@ for PLAYER in ${PLAYERONE[@]}; do
if [[ ${IPNSTAIL} != ${IPFSNODEID} || ${IPNSTAIL} == "_ASTROPORT_" ]]; then if [[ ${IPNSTAIL} != ${IPFSNODEID} || ${IPNSTAIL} == "_ASTROPORT_" ]]; then
echo "> I AM ${IPFSNODEID} : PLAYER MOVED TO ${IPNSTAIL} : EJECTION " echo "> I AM ${IPFSNODEID} : PLAYER MOVED TO ${IPNSTAIL} : EJECTION "
echo "UNPLUG PLAYER" echo "UNPLUG PLAYER"
${MY_PATH}/../tools/PLAYER.unplug.sh "${HOME}/.zen/game/players/${PLAYER}/ipfs/moa/index.html" "${PLAYER}" "ONE" ${MY_PATH}/PLAYER.unplug.sh "${HOME}/.zen/game/players/${PLAYER}/ipfs/moa/index.html" "${PLAYER}" "ONE"
echo ">>>> ASTRONAUT ${PLAYER} TW CAPSULE EJECTION TERMINATED" echo ">>>> ASTRONAUT ${PLAYER} TW CAPSULE EJECTION TERMINATED"
continue continue
fi fi
@ -363,7 +363,7 @@ for PLAYER in ${PLAYERONE[@]}; do
&& echo "<<<< PLAYER TW WARNING <<<< ${DIFF_SECONDS} > ${days} days" \ && echo "<<<< PLAYER TW WARNING <<<< ${DIFF_SECONDS} > ${days} days" \
&& [[ ${DIFF_SECONDS} -gt $(( 30 * 24 * 60 * 60 )) ]] \ && [[ ${DIFF_SECONDS} -gt $(( 30 * 24 * 60 * 60 )) ]] \
&& echo ">>>> PLAYER TW UNPLUG >>>>> ${days} days => BYE BYE ${PLAYER} ZEN=$ZEN" \ && echo ">>>> PLAYER TW UNPLUG >>>>> ${days} days => BYE BYE ${PLAYER} ZEN=$ZEN" \
&& ${MY_PATH}/../tools/PLAYER.unplug.sh ~/.zen/game/players/${PLAYER}/ipfs/moa/index.html ${PLAYER} \ && ${MY_PATH}/PLAYER.unplug.sh ~/.zen/game/players/${PLAYER}/ipfs/moa/index.html ${PLAYER} \
&& continue && continue
#################################### UNPLUG ACCOUNT #################################### UNPLUG ACCOUNT

View File

@ -7,3 +7,7 @@ This directory contains "ASTROBOT" programs templates
* example: * example:
```/ASTROBOT/G1CopierYoutube.sh``` ```/ASTROBOT/G1CopierYoutube.sh```
```/WWW/CopierYoutube/``` ```/WWW/CopierYoutube/```
_sandbox
just piece of code... you can use and make official

View File

@ -143,7 +143,7 @@ select fav in "${choices[@]}"; do
echo "ATTENTION ${PLAYER} DECONNEXION DE VOTRE TW !!" echo "ATTENTION ${PLAYER} DECONNEXION DE VOTRE TW !!"
echo "Enter to continue. Ctrl+C to stop" echo "Enter to continue. Ctrl+C to stop"
read read
${MY_PATH}/tools/PLAYER.unplug.sh "${HOME}/.zen/game/players/${PLAYER}/ipfs/moa/index.html" "${PLAYER}" ${MY_PATH}/RUNTIME/PLAYER.unplug.sh "${HOME}/.zen/game/players/${PLAYER}/ipfs/moa/index.html" "${PLAYER}"
break break
;; ;;