Versatile API. G1BILLET to GCHANGE to CESIUM to PLAYER

This commit is contained in:
fred 2023-03-23 17:52:52 +01:00
parent 9d55782823
commit 28d98e01ee
3 changed files with 20 additions and 15 deletions

View File

@ -170,8 +170,8 @@ else
## PALPE COMBIEN ?
if [[ $VISITORCOINS == "" || $VISITORCOINS == "null" ]]; then
# NOUVEAU 1 G1
PALPE=1
# REGLER "DUREE DE VIE" : PALPE / WISH_NB / DAY
PALPE=10
else
PALPE=0
fi
@ -239,7 +239,7 @@ else
## LE COMPTE VISITOR EST VIDE
echo "## PARRAIN $CURPLAYER SEND $PALPE TO ${QRCODE}"
## G1 PAYEMENT
$MY_PATH/../tools/jaklis/jaklis.py -k ~/.zen/game/players/.current/secret.dunikey pay -a ${PALPE} -p ${QRCODE} -c "ASTRO:ZEN_00${PALPE}00" -m
$MY_PATH/../tools/jaklis/jaklis.py -k ~/.zen/game/players/.current/secret.dunikey pay -a ${PALPE} -p ${QRCODE} -c "ASTRO:${RANDOM}:ZEN_00${PALPE}00" -m
## MESSAGE CESIUM +
$MY_PATH/../tools/jaklis/jaklis.py -n $myCESIUM -k $MYPLAYERKEY send -d "${QRCODE}" -t "CADEAU" \
@ -247,6 +247,11 @@ else
GAGNEZ PLUS DE JUNE... INSCRIVEZ VOUS SUR GCHANGE https://gchange.fr \
PUIS SCANNEZ VOTRE QRCODE SUR UNE STATION ASTROPORT"
## SEND ONE ★ (NEXT STEP GCHANGE)
my_star_level=1
echo "★ SENDING $my_star_level STAR(s) ★"
$MY_PATH/jaklis/jaklis.py -k ~/.zen/game/players/${PLAYER}/secret.dunikey stars -p ${QRCODE} -n $my_star_level
fi
ls ~/.zen/tmp/${MOATS}/

View File

@ -154,11 +154,11 @@ Take possession of your TW. Make freedom of expression uncensurable, unstoppable
<script>
const el = document.getElementById('yellow');
// const log = document.getElementById('login');
const log = document.getElementById('login');
log.style.visibility = 'visible';
setTimeout(() => {
el.style.visibility = 'visible';
// log.style.visibility = 'visible';
}, 23456); // 👈️ delay in milliseconds
var arrTimes = [];

View File

@ -270,7 +270,7 @@ do
--output ~/.zen/game/players/${PLAYER}/ipfs --render '.' "${FPLAYER}.rss.json" 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' '[days:created[-30]]'
[[ ! -s ~/.zen/game/players/${PLAYER}/ipfs/${FPLAYER}.rss.json ]] && echo "NO ${FPLAYER} RSS - BAD ~/.zen/game/players/${PLAYER}/ipfs/${FPLAYER}.rss.json -" && continue
echo "DEBUG RSS : cat ~/.zen/game/players/${PLAYER}/ipfs/${FPLAYER}.rss.json | jq -r"
echo "> DEBUG RSS : cat ~/.zen/game/players/${PLAYER}/ipfs/${FPLAYER}.rss.json | jq -r"
echo
tiddlywiki --load ${FTW} \
--output ~/.zen/game/players/${PLAYER}/ipfs --render '.' "${FPLAYER}.lightbeam-key.json" 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' '$:/plugins/astroport/lightbeams/saver/ipns/lightbeam-key'
@ -282,16 +282,16 @@ do
## RESET try
echo 0 > ~/.zen/game/players/${PLAYER}/FRIENDS/${liking_me}.try
## ★★★★★ ############################################################################
## liking_me IS A GOOD FRIEND. PLAYER Send $my_star_level COIN
$MY_PATH/jaklis/jaklis.py -k ~/.zen/game/players/${PLAYER}/secret.dunikey pay -a $my_star_level -p ${liking_me} -c "BRO:star:$my_star_level" -m
[[ ! $? == 0 ]] \
&& echo "PLAYER BROKE. G00D FRIEND. ${liking_me}" \
&& $MY_PATH/jaklis/jaklis.py -k ~/.zen/game/players/${PLAYER}/secret.dunikey send -d "${G1PUB}" -t "BRO YOU BROKE" -m "PLEASE REFILL WALLET: ${G1PUB} ~:star:~ $my_star_level stars : Friend Ŋ1 SCORE $gscore ${liking_me} "
#~ ## liking_me IS A GOOD FRIEND. PLAYER Send $my_star_level COIN
#~ $MY_PATH/jaklis/jaklis.py -k ~/.zen/game/players/${PLAYER}/secret.dunikey pay -a $my_star_level -p ${liking_me} -c "BRO:star:$my_star_level" -m
#~ [[ ! $? == 0 ]] \
#~ && echo "PLAYER BROKE. G00D FRIEND. ${liking_me}" \
#~ && $MY_PATH/jaklis/jaklis.py -k ~/.zen/game/players/${PLAYER}/secret.dunikey send -d "${G1PUB}" -t "BRO YOU BROKE" -m "PLEASE REFILL WALLET: ${G1PUB} ~:star:~ $my_star_level stars : Friend Ŋ1 SCORE $gscore ${liking_me} "
############################################################################### ★★★★★
## DEFAULT SAME CONFIDENCE LEVEL
echo "★ SENDING $my_star_level STAR(s) ★"
$MY_PATH/jaklis/jaklis.py -k ~/.zen/game/players/${PLAYER}/secret.dunikey stars -p $liking_me -n $my_star_level
#~ ############################################################################### ★★★★★
#~ ## DEFAULT SAME CONFIDENCE LEVEL
#~ echo "★ SENDING $my_star_level STAR(s) ★"
#~ $MY_PATH/jaklis/jaklis.py -k ~/.zen/game/players/${PLAYER}/secret.dunikey stars -p $liking_me -n $my_star_level
######################################
## ADD THIS FPLAYER RSS FEED INTO PLAYER TW