From c476d7d3d7b6c6a7b09043fc99b350eab4a9f891 Mon Sep 17 00:00:00 2001 From: fred Date: Fri, 29 Mar 2024 23:21:46 +0100 Subject: [PATCH] #PLAYER.unplug# EXPLAIN WHY ! --- RUNTIME/PLAYER.refresh.sh | 2 +- RUNTIME/PLAYER.unplug.sh | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/RUNTIME/PLAYER.refresh.sh b/RUNTIME/PLAYER.refresh.sh index 4b7f3b4f..5699e479 100755 --- a/RUNTIME/PLAYER.refresh.sh +++ b/RUNTIME/PLAYER.refresh.sh @@ -215,7 +215,7 @@ for PLAYER in ${PLAYERONE[@]}; do ########### ASTROPORT is not IPFSNODEID => EJECT TW if [[ ${IPNSTAIL} != ${IPFSNODEID} || ${IPNSTAIL} == "_ASTROPORT_" ]]; then echo "> PLAYER MOVED TO ${IPNSTAIL} : UNPLUG " - ${MY_PATH}/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" "AstroID MUST BE DELETED" echo ">>>> CIAO ${PLAYER}" continue fi diff --git a/RUNTIME/PLAYER.unplug.sh b/RUNTIME/PLAYER.unplug.sh index 4c078a67..a59ea892 100755 --- a/RUNTIME/PLAYER.unplug.sh +++ b/RUNTIME/PLAYER.unplug.sh @@ -20,6 +20,10 @@ PLAYER="$2" ONE="$3" +## EXPLAIN WHY ! +SHOUT="$4" + + MOATS=$(date -u +"%Y%m%d%H%M%S%4N") mkdir -p ~/.zen/tmp/${MOATS} @@ -68,7 +72,7 @@ mkdir -p ~/.zen/tmp/${MOATS} ## SEND PLAYER LAST KNOW TW TW=$(ipfs add -Hq ${INDEX} | tail -n 1) -${MY_PATH}/../tools/mailjet.sh "${PLAYER}" "

Ciao ${PLAYER},

Your TW is unplugged from Astroport : TW (${TW}).
$(cat ~/.zen/game/players/${PLAYER}/secret.june)

May the force be with you.

" "BYE BYE MESSAGE" +${MY_PATH}/../tools/mailjet.sh "${PLAYER}" "

Ciao ${PLAYER},

Your TW is unplugged from Astroport : TW (${TW}).
$(cat ~/.zen/game/players/${PLAYER}/secret.june)

May the force be with you.

" "BYE BYE MESSAGE $SHOUT" echo "PLAYER IPNS KEYS UNPLUGED" echo "#######################"