From 9afcb013bd037ffea2c0f5378065db3381005790 Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 17 Mar 2024 18:08:41 +0100 Subject: [PATCH] + == ++ --- RUNTIME/PLAYER.refresh.sh | 4 ++-- RUNTIME/VISA.new.sh | 24 ++++++++++++++---------- tools/mailjet.sh | 4 ++-- 3 files changed, 18 insertions(+), 14 deletions(-) diff --git a/RUNTIME/PLAYER.refresh.sh b/RUNTIME/PLAYER.refresh.sh index ac228c7a..2c09693c 100755 --- a/RUNTIME/PLAYER.refresh.sh +++ b/RUNTIME/PLAYER.refresh.sh @@ -18,8 +18,9 @@ PLAYERONE="$1" [[ ! ${PLAYERONE} ]] && PLAYERONE=($(ls -t ~/.zen/game/players/ | grep "@" 2>/dev/null)) echo "FOUND : ${PLAYERONE[@]}" +CURRENT=$(readlink ~/.zen/game/players/.current | rev | cut -d '/' -f 1 | rev) -echo "RENEWING LOCAL UPLANET REPOSITORY +echo "RENEWING LOCAL UPLANET REPOSITORY (ADMIN=${CURRENT}) ~/.zen/tmp/${IPFSNODEID}/UPLANET/__/_*_*/_*.?_*.?/_*.??_*.??" rm -Rf ~/.zen/tmp/${IPFSNODEID}/UPLANET mkdir -p ~/.zen/tmp/${IPFSNODEID}/UPLANET @@ -576,7 +577,6 @@ for PLAYER in ${PLAYERONE[@]}; do ##################################################################### ## DAY=7 : SEND 3.1 G1 to PLAYER + 3.1 G1 to UMAP - CURRENT=$(readlink ~/.zen/game/players/.current | rev | cut -d '/' -f 1 | rev) [[ ${days} -eq 7 && "${CURRENT}" != "${PLAYER}" && "${CURRENT}" != "" ]] \ && echo "7 DAY. PLAYER STEP ONE SUCCEED." \ && MIUSER=$(${MY_PATH}/../tools/clyuseryomail.sh "${CURRENT}") \ diff --git a/RUNTIME/VISA.new.sh b/RUNTIME/VISA.new.sh index eb5a9ba5..78e3bdab 100755 --- a/RUNTIME/VISA.new.sh +++ b/RUNTIME/VISA.new.sh @@ -566,6 +566,10 @@ echo "

UPlanet : TW

" > ~/.zen/tmp/${MOATS}/ZenCard.html + +echo "
+

ZenCard

" >> ~/.zen/tmp/${MOATS}/ZenCard.html + asciiart="${MY_PATH}/../images/astroport.art" while IFS= read -r line do @@ -573,9 +577,7 @@ do echo "
" >> ~/.zen/tmp/${MOATS}/ZenCard.html done <"$asciiart" -echo "
-

ZenCard

-" >> ~/.zen/tmp/${MOATS}/ZenCard.html +echo "" >> ~/.zen/tmp/${MOATS}/ZenCard.html $MY_PATH/../tools/mailjet.sh "${PLAYER}" ~/.zen/tmp/${MOATS}/ZenCard.html "ZenCard (${PLAYER}) " @@ -597,6 +599,14 @@ echo "

UPlanet : AstroID ($PASS)

" > ~/.zen/tmp/${MOATS}/AstroID.html + +echo " +

<--> SECTOR : ${SECTOR} <-->

+

SECRET1=\"$SALT\" SECRET2=\"$PEPPER\"

+
AstroID
+

ASTROPORT : /ipns/${IPFSNODEID}

+Uplanet" >> ~/.zen/tmp/${MOATS}/AstroID.html + asciiart="${MY_PATH}/../images/logoastro.art" while IFS= read -r line do @@ -604,13 +614,7 @@ do echo "
" >> ~/.zen/tmp/${MOATS}/AstroID.html done <"$asciiart" -echo " -

<--> 0.1 SECTOR : ${SECTOR} <-->

-
PRINT & KEEP SAFE AstroID
-
SECRET1=$SALT
SECRET2=$PEPPER
($PASS)
-

ASTROPORT : /ipns/${IPFSNODEID}

-Uplanet -" >> ~/.zen/tmp/${MOATS}/AstroID.html +echo "" >> ~/.zen/tmp/${MOATS}/AstroID.html $MY_PATH/../tools/mailjet.sh "${PLAYER}" ~/.zen/tmp/${MOATS}/AstroID.html "AstroID (${PLAYER}) " diff --git a/tools/mailjet.sh b/tools/mailjet.sh index b86f6e01..a9f3f7aa 100755 --- a/tools/mailjet.sh +++ b/tools/mailjet.sh @@ -57,7 +57,7 @@ title="$3" SUBJECT="[UPlanet] ${title} ${pseudo}" -MESSAGESIGN="---
this message is sent to you by $(myHostName) your ♥BOX Astroport.ONE Station" +MESSAGESIGN="---
this message is sent by $(myHostName) your Astroport ♥BOX Zen Station" echo " ######################################################################## @@ -98,7 +98,7 @@ json_payload='{ ], "Subject": "'${SUBJECT}'", "TextPart": "'$(myIpfsGw)/ipfs/${EMAILZ}'", - "HTMLPart": "

Bro

You have a
'${title}'!

on UPlanet
May the good vibes be with you!
'${MESSAGESIGN}'" + "HTMLPart": "

Bro

You have a
'${title}'!

on UPlanet
May the good vibes be with you!
'${MESSAGESIGN}'
/ipfs/'${EMAILZ}'" } ] }'