Solution to the Angel Problem

This commit is contained in:
qo-op 2020-05-11 05:22:57 +02:00
parent 0ae12ce1c5
commit c1dcf6a244
2 changed files with 9 additions and 1 deletions

Binary file not shown.

View File

@ -118,10 +118,18 @@ export LANG=C.UTF-8 #attipix
DUNITERNODE=$($MY_PATH/tools/duniter_getnode.sh)
[[ $DUNITERNODE ]] && g1balance=$(silkaj -p $DUNITERNODE balance $g1pub 2>&1) || g1balance=$(silkaj balance $g1pub 2>&1)
# SSB PUBLISH G1 wallet silkaj balance
INLINE=$(node -p "JSON.stringify(process.env.g1balance)")
# TODO FIND WHY THIS ***** COMA , IS EVERYWHERE
json_escape () {
printf '%s' "$1" | python -c 'import json,sys; print(json.dumps(sys.stdin.read()))'
}
INLINE=$(json_escape "$g1balance")
[[ $INLINE ]] && sbotc publish '{"type":"post","text":'$INLINE'}'
#INLINE="${g1balance@Q}"
#[[ $INLINE ]] && sbotc publish '{"type":"post","text":"'$INLINE'"}'
echo "
_ _
/ \|_) _ _ _| _