poush
This commit is contained in:
parent
6e1d3a5ccb
commit
ba40f680c3
|
@ -278,6 +278,7 @@ else
|
||||||
## GET VISITOR G1 WALLET AMOUNT : VISITORCOINS
|
## GET VISITOR G1 WALLET AMOUNT : VISITORCOINS
|
||||||
echo "COINScheck : ${MY_PATH}/../tools/jaklis/jaklis.py balance -p ${QRCODE}"
|
echo "COINScheck : ${MY_PATH}/../tools/jaklis/jaklis.py balance -p ${QRCODE}"
|
||||||
VISITORCOINS=$(${MY_PATH}/../tools/COINScheck.sh ${QRCODE} | tail -n 1)
|
VISITORCOINS=$(${MY_PATH}/../tools/COINScheck.sh ${QRCODE} | tail -n 1)
|
||||||
|
COINSFILE=$HOME/.zen/tmp/coucou/${QRCODE}.COINS
|
||||||
|
|
||||||
## EMPTY WALLET ? PREPARE PALPE WELCOME
|
## EMPTY WALLET ? PREPARE PALPE WELCOME
|
||||||
if [[ $VISITORCOINS == "" || $VISITORCOINS == "null" ]]; then
|
if [[ $VISITORCOINS == "" || $VISITORCOINS == "null" ]]; then
|
||||||
|
@ -290,8 +291,19 @@ else
|
||||||
echo "VISITEUR POSSEDE ${VISITORCOINS} G1"
|
echo "VISITEUR POSSEDE ${VISITORCOINS} G1"
|
||||||
|
|
||||||
## GET G1 WALLET HISTORY
|
## GET G1 WALLET HISTORY
|
||||||
[[ ! -s ~/.zen/tmp/coucou/${QRCODE}.g1history.json ]] \
|
if [ ${VISITORCOINS} -gt 0 ]; then
|
||||||
&& ${MY_PATH}/../tools/timeout.sh -t 20 $MY_PATH/../tools/jaklis/jaklis.py history -p ${QRCODE} -j > ~/.zen/tmp/coucou/${QRCODE}.g1history.json &
|
|
||||||
|
[[ ! -s ~/.zen/tmp/coucou/${QRCODE}.g1history.json ]] \
|
||||||
|
&& ${MY_PATH}/../tools/timeout.sh -t 20 $MY_PATH/../tools/jaklis/jaklis.py history -p ${QRCODE} -j > ~/.zen/tmp/coucou/${QRCODE}.g1history.json
|
||||||
|
echo "${HTTPCORS}" > ~/.zen/tmp/${MOATS}/index.redirect
|
||||||
|
cat ~/.zen/tmp/coucou/${QRCODE}.g1history.json >> ~/.zen/tmp/${MOATS}/index.redirect
|
||||||
|
(
|
||||||
|
cat ~/.zen/tmp/${MOATS}/index.redirect | nc -l -p ${PORT} -q 1 > /dev/null 2>&1
|
||||||
|
echo "BLURP $PORT" && rm -Rf ~/.zen/tmp/${MOATS}
|
||||||
|
) &
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
## SCAN GCHANGE +
|
## SCAN GCHANGE +
|
||||||
[[ ! -s ~/.zen/tmp/coucou/${QRCODE}.gchange.json ]] \
|
[[ ! -s ~/.zen/tmp/coucou/${QRCODE}.gchange.json ]] \
|
||||||
|
|
|
@ -34,8 +34,8 @@ echo "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"
|
||||||
|
|
||||||
for v in $(cat ~/.zen/game/players/$PLAYER/voeux/*/*/.title); do
|
for v in $(cat ~/.zen/game/players/$PLAYER/voeux/*/*/.title); do
|
||||||
g1pub=$(grep -r $v ~/.zen/game/players/$PLAYER/voeux/ 2>/dev/null | rev | cut -d '/' -f 2 | rev )
|
g1pub=$(grep -r $v ~/.zen/game/players/$PLAYER/voeux/ 2>/dev/null | rev | cut -d '/' -f 2 | rev )
|
||||||
# echo "$v : $g1pub"
|
echo "$v : $g1pub"
|
||||||
# echo '------------------------------------------------------------------'
|
echo '------------------------------------------------------------------'
|
||||||
vlist=($v:$g1pub ${vlist[@]})
|
vlist=($v:$g1pub ${vlist[@]})
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue