forked from STI/Astroport.ONE
_UPLAYERSTIDS_ in _SECTOR_ TW
This commit is contained in:
parent
63f71ddec9
commit
c81436b83a
@ -248,16 +248,6 @@ for PLAYER in ${PLAYERONE[@]}; do
|
|||||||
sed -i "s~_SECTORTW_~/ipns/${TODATESECTORNS}/TW~g" ~/.zen/tmp/${MOATS}/GPS.json
|
sed -i "s~_SECTORTW_~/ipns/${TODATESECTORNS}/TW~g" ~/.zen/tmp/${MOATS}/GPS.json
|
||||||
###################################### INJECT JSON
|
###################################### INJECT JSON
|
||||||
|
|
||||||
######################################
|
|
||||||
# (RE)MAKE "SECTORTW_NEWS" TIDDLER
|
|
||||||
cat ${MY_PATH}/../templates/data/SECTORTW_NEWS.json \
|
|
||||||
| sed -e "s~_SECTOR_~${SECTOR}~g" \
|
|
||||||
-e "s~_MOATS_~${MOATS}~g" \
|
|
||||||
-e "s~_SECTORTW_~/ipns/${TODATESECTORNS}/TW~g" \
|
|
||||||
> ~/.zen/tmp/${MOATS}/SECTORTW_NEWS.json
|
|
||||||
|
|
||||||
echo "SECTOR $SECTOR SECTORTW=/ipns/${TODATESECTORNS}/TW"
|
|
||||||
|
|
||||||
################# PERSONAL VDO.NINJA ADDRESS)
|
################# PERSONAL VDO.NINJA ADDRESS)
|
||||||
PHONEBOOTH=${PLAYER/@/_}
|
PHONEBOOTH=${PLAYER/@/_}
|
||||||
PHONEBOOTH=${PHONEBOOTH/\./_}
|
PHONEBOOTH=${PHONEBOOTH/\./_}
|
||||||
@ -296,7 +286,7 @@ for PLAYER in ${PLAYERONE[@]}; do
|
|||||||
#####################################################################
|
#####################################################################
|
||||||
fplayers=($(cat ~/.zen/tmp/${MOATS}/FRIENDS.json | jq -rc .[].title))
|
fplayers=($(cat ~/.zen/tmp/${MOATS}/FRIENDS.json | jq -rc .[].title))
|
||||||
echo "${fplayers[@]}"
|
echo "${fplayers[@]}"
|
||||||
INPUTPLAYERS=()
|
UPLAYERSTIDS=()
|
||||||
for fp in ${fplayers[@]}; do
|
for fp in ${fplayers[@]}; do
|
||||||
|
|
||||||
[[ ! "${fp}" =~ ^[a-zA-Z0-9.%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$ ]] && echo "BAD ${fp} FORMAT" && continue
|
[[ ! "${fp}" =~ ^[a-zA-Z0-9.%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$ ]] && echo "BAD ${fp} FORMAT" && continue
|
||||||
@ -317,6 +307,7 @@ for PLAYER in ${PLAYERONE[@]}; do
|
|||||||
echo "TW: $FTW"
|
echo "TW: $FTW"
|
||||||
echo "G1: $FG1PUB"
|
echo "G1: $FG1PUB"
|
||||||
echo "IHASH: $IHASH"
|
echo "IHASH: $IHASH"
|
||||||
|
UPLAYERSTIDS=("${UPLAYERSTIDS[@]}" "[[${FPLAYER^^}|${FPLAYER^^}]]")
|
||||||
|
|
||||||
## GET ORIGINH FROM LAST KNOWN TW STATE
|
## GET ORIGINH FROM LAST KNOWN TW STATE
|
||||||
mkdir -p ~/.zen/game/players/${PLAYER}/FRIENDS/${FPLAYER}
|
mkdir -p ~/.zen/game/players/${PLAYER}/FRIENDS/${FPLAYER}
|
||||||
@ -377,14 +368,26 @@ for PLAYER in ${PLAYERONE[@]}; do
|
|||||||
&& rm ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/newindex.html \
|
&& rm ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/newindex.html \
|
||||||
|| echo "ERROR - CANNOT CREATE TW NEWINDEX - ERROR"
|
|| echo "ERROR - CANNOT CREATE TW NEWINDEX - ERROR"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
## GET $:/moa Tiddlers ####################################### END
|
## GET $:/moa Tiddlers ####################################### END
|
||||||
|
echo "${UPLAYERSTIDS[@]}"
|
||||||
|
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
||||||
|
######################################
|
||||||
|
# (RE)MAKE "SECTORTW_NEWS" TIDDLER
|
||||||
|
cat ${MY_PATH}/../templates/data/SECTORTW_NEWS.json \
|
||||||
|
| sed -e "s~_SECTOR_~${SECTOR}~g" \
|
||||||
|
-e "s~_MOATS_~${MOATS}~g" \
|
||||||
|
-e "s~_UPLAYERSTIDS_~${UPLAYERSTIDS[@]}~g" \
|
||||||
|
-e "s~_SECTORTW_~/ipns/${TODATESECTORNS}/TW~g" \
|
||||||
|
> ~/.zen/tmp/${MOATS}/SECTORTW_NEWS.json
|
||||||
|
|
||||||
|
echo "SECTOR $SECTOR SECTORTW=/ipns/${TODATESECTORNS}/TW"
|
||||||
|
|
||||||
#############################################################
|
#############################################################
|
||||||
# Connect_PLAYER_To_Gchange.sh : Sync FRIENDS TW - TODO : REWRITE
|
# Connect_PLAYER_To_Gchange.sh : Sync FRIENDS TW - TODO : REWRITE
|
||||||
##############################################################
|
##############################################################
|
||||||
|
@ -193,8 +193,9 @@ for SECTOR in ${SECTORS[@]}; do
|
|||||||
## SET SECTOR
|
## SET SECTOR
|
||||||
sed -i "s~_SECTOR_~${SECTOR}~g" ${INDEX}
|
sed -i "s~_SECTOR_~${SECTOR}~g" ${INDEX}
|
||||||
|
|
||||||
## GET ALL TWs in that SECTOR
|
## REFRESH ALL TWs in that SECTOR
|
||||||
mkdir ~/.zen/tmp/${MOATS}/${SECTOR}/TWz
|
rm -Rf ~/.zen/tmp/${MOATS}/${SECTOR}/TWz
|
||||||
|
mkdir -p ~/.zen/tmp/${MOATS}/${SECTOR}/TWz
|
||||||
|
|
||||||
cp -rf ~/.zen/tmp/swarm/12D*/UPLANET/__/_*_*/_${SLAT}_${SLON}/_*_*/TW/* \
|
cp -rf ~/.zen/tmp/swarm/12D*/UPLANET/__/_*_*/_${SLAT}_${SLON}/_*_*/TW/* \
|
||||||
~/.zen/tmp/${MOATS}/${SECTOR}/TWz
|
~/.zen/tmp/${MOATS}/${SECTOR}/TWz
|
||||||
@ -290,7 +291,7 @@ for SECTOR in ${SECTORS[@]}; do
|
|||||||
## ADD SECTOR ZENPUB.png & INFO.png
|
## ADD SECTOR ZENPUB.png & INFO.png
|
||||||
convert -font 'Liberation-Sans' \
|
convert -font 'Liberation-Sans' \
|
||||||
-pointsize 80 -fill purple -draw 'text 50,120 "'"${ZEN} Zen"'"' \
|
-pointsize 80 -fill purple -draw 'text 50,120 "'"${ZEN} Zen"'"' \
|
||||||
-pointsize 30 -fill purple -draw 'text 40, 180 "'"${SECTOR}"'"' \
|
-pointsize 30 -fill purple -draw 'text 40, 180 "'"${SECTOR}:${YESTERDATE}"'"' \
|
||||||
$MY_PATH/../images/G1WorldMap.png "${HOME}/.zen/tmp/${MOATS}/${SECTOR}.png"
|
$MY_PATH/../images/G1WorldMap.png "${HOME}/.zen/tmp/${MOATS}/${SECTOR}.png"
|
||||||
# CREATE G1PUB AMZQR
|
# CREATE G1PUB AMZQR
|
||||||
amzqr ${G1PUB} -l H -p "$MY_PATH/../images/zenticket.png" -c -n ZENPUB.png -d ~/.zen/tmp/${MOATS}/${SECTOR}/
|
amzqr ${G1PUB} -l H -p "$MY_PATH/../images/zenticket.png" -c -n ZENPUB.png -d ~/.zen/tmp/${MOATS}/${SECTOR}/
|
||||||
|
@ -574,7 +574,7 @@ do
|
|||||||
done <"$asciiart"
|
done <"$asciiart"
|
||||||
|
|
||||||
echo "<br><img src='${myIPFSGW}${IASTRO}'\>
|
echo "<br><img src='${myIPFSGW}${IASTRO}'\>
|
||||||
<h2>PRINT & SHARE <a href='${myIPFS}/ipns/${ASTRONAUTENS}#ZenCard' title='${G1PUB}'>ZenCard</a></h2>
|
<h2><a href='${myIPFS}/ipns/${ASTRONAUTENS}#ZenCard' title='${G1PUB}'>ZenCard</a></h2>
|
||||||
</body></html>" >> ~/.zen/tmp/${MOATS}/ZenCard.html
|
</body></html>" >> ~/.zen/tmp/${MOATS}/ZenCard.html
|
||||||
|
|
||||||
$MY_PATH/../tools/mailjet.sh "${PLAYER}" ~/.zen/tmp/${MOATS}/ZenCard.html "ZenCard (${PLAYER}) "
|
$MY_PATH/../tools/mailjet.sh "${PLAYER}" ~/.zen/tmp/${MOATS}/ZenCard.html "ZenCard (${PLAYER}) "
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"created": "_MOATS_",
|
"created": "_MOATS_",
|
||||||
"modified": "_MOATS_",
|
"modified": "_MOATS_",
|
||||||
"title": "_SECTOR_.NEWS",
|
"title": "_SECTOR_.NEWS",
|
||||||
"text": "\\procedure loadMyWiki()\n\\import [[$:/plugins/sq/ExternalContent/loadWikiActions]]\n<$transclude\n $variable=\"loadWikiActions\"\n wikiURL={{!!wikiURL}}\n contentFilter={{!!filter}}\n deserializer=\"text/html\"\n />\n\\end\n\n<details close=\"yes\">\n <summary>[[_SECTOR_.NEWS|_SECTOR_.NEWS]]</summary>\n <div>\n\n<$edit size=60 field=\"wikiURL\"/> ⬅︎ TW <br>\n<$edit size=50 field=\"filter\"/> ⬅︎ Filtration\n\n<<hspace>>\n\n </div>\n </details>\n\n<$button actions=<<loadMyWiki>> > _SECTOR_ (⌐■_■) </$button> (<a target=\"_blank\" href={{{ [[.]addsuffix{!!wikiURL}] }}} >TW</a>) \n",
|
"text": "\\procedure loadMyWiki()\n\\import [[$:/plugins/sq/ExternalContent/loadWikiActions]]\n<$transclude\n $variable=\"loadWikiActions\"\n wikiURL={{!!wikiURL}}\n contentFilter={{!!filter}}\n deserializer=\"text/html\"\n />\n\\end\n\n<details close=\"yes\">\n <summary>[[_SECTOR_.NEWS|_SECTOR_.NEWS]]</summary>\n <div>\n\n<$edit size=60 field=\"wikiURL\"/> ⬅︎ TW <br>\n<$edit size=50 field=\"filter\"/> ⬅︎ Filtration\n\n </div>\n</details>\n<$button actions=<<loadMyWiki>> > _SECTOR_ (⌐■_■) </$button> (<a target=\"_blank\" href={{{ [[.]addsuffix{!!wikiURL}] }}} >TW</a>) \n<<hspace>>\n\n_UPLAYERSTIDS_ \n\n<<hspace>>\n\n<details open ><summary> (☓‿‿☓) </summary>\n<div class=\"sh-multicol\">\n <<list-links [is_volatile[yes]]>>\n</div>\n</details>\n\n<details open ><summary> (✜‿‿✜) </summary>\n<div class=\"sh-multicol\">\n <<list-links [externalTiddler[yes]!is_volatile[yes]]>>\n</div>",
|
||||||
"tags": "load-external _SECTOR_ $:/tags/SideBar",
|
"tags": "load-external _SECTOR_ $:/tags/SideBar",
|
||||||
"filter": "[days[-7]!is[system]!tag[G1Voeu]]",
|
"filter": "[days[-7]!is[system]!tag[G1Voeu]]",
|
||||||
"caption": "_SECTOR_",
|
"caption": "_SECTOR_",
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
"created": "_MOATS_",
|
"created": "_MOATS_",
|
||||||
"modified": "_MOATS_",
|
"modified": "_MOATS_",
|
||||||
"title": "_UPPERFPLAYER_",
|
"title": "_UPPERFPLAYER_",
|
||||||
"text": "\\procedure loadMyWiki()\n\\import [[$:/plugins/sq/ExternalContent/loadWikiActions]]\n<$transclude\n $variable=\"loadWikiActions\"\n wikiURL={{!!wikiURL}}\n contentFilter={{!!filter}}\n deserializer=\"text/html\"\n />\n\\end\n\n<details close=\"yes\">\n <summary> [[_UPPERFPLAYER_|_UPPERFPLAYER_]] </summary>\n <div>\n\n<$edit size=56 field=\"wikiURL\"/> ⬅︎ TW <br>\n<$edit size=42 field=\"filter\"/> ⬅︎ Filtration\n\n<<hspace>>\n\n</div>\n </details>\n\n<$button actions=<<loadMyWiki>> > _UPPERFPLAYER_ (⌐■_■) </$button>\n\n <$button class='tc-tiddlylink'><$list filter='[tag[_FPLAYER_]]'><$action-navigate $to=<<currentTiddler>> $scroll=no/></$list>_FPLAYER_</$button> (<a target=\"_blank\" href={{{ [[/..]addsuffix{!!wikiURL}] }}} >TW</a>) \n",
|
"text": "\\procedure loadMyWiki()\n\\import [[$:/plugins/sq/ExternalContent/loadWikiActions]]\n<$transclude\n $variable=\"loadWikiActions\"\n wikiURL={{!!wikiURL}}\n contentFilter={{!!filter}}\n deserializer=\"text/html\"\n />\n\\end\n\n<details close=\"yes\">\n<summary> [[_UPPERFPLAYER_|_UPPERFPLAYER_]] </summary>\n<div>\n\n<$edit size=56 field=\"wikiURL\"/> ⬅︎ TW <br>\n<$edit size=42 field=\"filter\"/> ⬅︎ Filtration\n\n<<hspace>>\n\n</div>\n</details>\n\n<$button actions=<<loadMyWiki>> > _UPPERFPLAYER_ (⌐■_■) </$button>\n\n<details open ><summary> (☓‿‿☓) </summary>\n<div class=\"sh-multicol\">\n<<list-links [is_volatile[yes]tag[_FPLAYER_]]>>\n</div>\n</details>\n\n<details open ><summary> (✜‿‿✜) </summary>\n<div class=\"sh-multicol\">\n<<list-links [externalTiddler[yes]!is_volatile[yes]tag[_FPLAYER_]]>>\n</div>\n</details>\n\n<$button class='tc-tiddlylink'>\n <$list filter='[tag[_FPLAYER_]]'>\n <$action-navigate $to=<<currentTiddler>> $scroll=no/>\n </$list>\n _FPLAYER_\n</$button>\n\n(<a target=\"_blank\" href={{{ [[/..]addsuffix{!!wikiURL}] }}} >TW</a>) ",
|
||||||
"tags": "load-external _PLAYER_ $:/tags/SideBar",
|
"tags": "load-external _PLAYER_ ",
|
||||||
"ihash": "_IHASH_",
|
"ihash": "_IHASH_",
|
||||||
"filter": "[days[-1]!is[system]!tag[G1Voeu]]",
|
"filter": "[days[-1]!is[system]!tag[G1Voeu]]",
|
||||||
"wikiURL": "_FRIENDTW_",
|
"wikiURL": "_FRIENDTW_",
|
||||||
|
Loading…
Reference in New Issue
Block a user