espeak "Astroport Empty. Enter your magic email"

This commit is contained in:
fred 2022-12-23 22:38:15 +01:00
parent 5805aaf5dc
commit a831e557b7
1 changed files with 5 additions and 1 deletions

View File

@ -45,7 +45,11 @@ CHOICE="$3"
&& OUTPUT=$(zenity --entry --width 640 --title="=> Astroport" --text="ASTRONAUTE ?" --entry-text=${players[@]}) \
&& [[ $OUTPUT ]] && PLAYER=$OUTPUT && rm -f ~/.zen/game/players/.current && ln -s ~/.zen/game/players/$PLAYER ~/.zen/game/players/.current \
[[ ${PLAYER} == "" ]] && xdg-open "http://astroport.localhost:1234" && exit 1
[[ ${PLAYER} == "" ]] \
&& ${MY_PATH}/start.sh \
&& espeak "Astroport Empty. Enter your magic email" \
&& xdg-open "http://astroport.localhost:1234" \
&& exit 1
PSEUDO=$(cat ~/.zen/game/players/${PLAYER}/.pseudo 2>/dev/null)
espeak "Hello $PSEUDO"