Play with Astroport Command Line

This commit is contained in:
fred 2023-11-02 23:15:26 +01:00
parent ebb2ff59f7
commit c66c233989
2 changed files with 4 additions and 5 deletions

View File

@ -26,8 +26,7 @@ G1PUB="$3"
[[ -s $HOME/.zen/tmp/coucou/${G1PUB}.COINS ]] \ [[ -s $HOME/.zen/tmp/coucou/${G1PUB}.COINS ]] \
&& COINS=$(cat $HOME/.zen/tmp/coucou/${G1PUB}.COINS) \ && COINS=$(cat $HOME/.zen/tmp/coucou/${G1PUB}.COINS) \
&& [[ ${COINS} == "null" || ${COINS} == "" ]] \ && [[ ${COINS} == "null" || ${COINS} == "" ]] \
&& echo ">>> ${COINS} : DESACTIVATED - NEED G1 TO MAKE A WISH - EXIT - " \ && echo ">>> ${COINS} : G1 NEEDED TO EXECUTE A WISH"
&& exit 0
## EXPORT [tag[voeu]] ## EXPORT [tag[voeu]]
echo "## EXTRACTION DE NOUVEAUX VOEUX pour $PLAYER TW" echo "## EXTRACTION DE NOUVEAUX VOEUX pour $PLAYER TW"
@ -35,7 +34,7 @@ echo "$INDEX [tag[voeu]] ?"
rm -f ~/.zen/tmp/voeu.json 2>/dev/null rm -f ~/.zen/tmp/voeu.json 2>/dev/null
tiddlywiki --load ${INDEX} --output ~/.zen/tmp --render '.' 'voeu.json' 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' '[tag[voeu]]' tiddlywiki --load ${INDEX} --output ~/.zen/tmp --render '.' 'voeu.json' 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' '[tag[voeu]]'
[[ ! -s ~/.zen/tmp/voeu.json ]] && echo "AUCUN VOEU - EXIT -" && exit 0 [[ ! -s ~/.zen/tmp/voeu.json ]] && echo "AUCUN VOEU A ACTIVER" && exit 0
## Tous les tiddlers comportant le tag "voeu" lancent la création d'un G1VOEU ayant le titre du Voeu comme génrateur de clef TW (pepper). ## Tous les tiddlers comportant le tag "voeu" lancent la création d'un G1VOEU ayant le titre du Voeu comme génrateur de clef TW (pepper).
cat ~/.zen/tmp/voeu.json | jq -r '.[].title' > ~/.zen/tmp/$PLAYER.voeux.create.list cat ~/.zen/tmp/voeu.json | jq -r '.[].title' > ~/.zen/tmp/$PLAYER.voeux.create.list

View File

@ -61,9 +61,9 @@ while true; do
echo "ASTROPORT ONE" echo "ASTROPORT ONE"
echo "VISA pour le vaisseau spatial TERRE." echo "VISA pour le vaisseau spatial TERRE."
read -p "Appuyez sur [ENTER] pour activer votre Station Astroport.ONE" read -p "Appuyez sur [ENTER] pour activer votre Station Astroport.ONE"
espeak "Astronaut. TW activation" > /dev/null 2>&1 espeak "Astroport Command" > /dev/null 2>&1
~/.zen/Astroport.ONE/start.sh ~/.zen/Astroport.ONE/command.sh
fi fi
exit exit