# TODO crash bad text format ?
This commit is contained in:
parent
cb0e894f1c
commit
30a34e61c7
|
@ -113,8 +113,9 @@ 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 # TODO crash bad text format
|
||||
[[ $g1balance ]] && sbotc publish '{"type":"post","text":"'"$g1balance"'"}'
|
||||
# SSB PUBLISH G1 wallet silkaj balance
|
||||
INLINE=$(node -p "JSON.stringify(process.env.g1balance)")
|
||||
[[ $INLINE ]] && sbotc publish '{"type":"post","text":'$INLINE'}'
|
||||
|
||||
echo "
|
||||
_ _
|
||||
|
@ -131,7 +132,7 @@ $g1balance
|
|||
if [[ ! $(file "/tmp/avatar.png" | grep 'PNG') ]]; then
|
||||
sbotc publish '{"type":"post","text":"[My G1 Wallet QRCode]('"$id"')\nI am using [Cesium](https://cesium.app) to manage my wallet with (base64 to base58) secret.dunikey","mentions":[{"link":"'"$id"'","name":"'"$name"'","size":'"$size"',"type":"'"$type"'"}]}'
|
||||
else
|
||||
sbotc publish '{"type":"post","text":"[Cesium Avatar]('"$id"')\n from my Wallet [Cesium](https://demo.cesium.app/#/app/wot/'"$g1pub"')","mentions":[{"link":"'"$id"'","name":"'"$name"'","size":'"$size"',"type":"'"$type"'"}]}'
|
||||
sbotc publish '{"type":"post","text":"![Cesium Avatar]('"$id"')\n from my Wallet [Cesium](https://demo.cesium.app/#/app/wot/'"$g1pub"') '"$g1pub"'","mentions":[{"link":"'"$id"'","name":"'"$name"'","size":'"$size"',"type":"'"$type"'"}]}'
|
||||
fi
|
||||
|
||||
echo "
|
||||
|
|
|
@ -442,7 +442,7 @@ echo "$MESSAGE"
|
|||
INLINE=$(node -p "JSON.stringify(process.env.MESSAGE)")
|
||||
|
||||
# echo '{"type":"post", "branch": "'"$msg_branch"'", "root": "'"$msg_root"'", "text":"'"${INLINE}"'","mentions":[{"link":"'"$id"'","name":"'"$name"'","size":"'"$size"'","type":"'"$type"'"},{"link":"#zenbot"},{"link":"#astroport"}]}'
|
||||
sbotc publish '{"type":"post", "branch": "'"$msg_branch"'", "root": "'"$msg_root"'", "text":"'${INLINE}'","mentions":[{"link":"'"$id"'","name":"'"$name"'","size":"'"$size"'","type":"'"$type"'"},{"link":"#zenbot"},{"link":"#astroport"}]}'
|
||||
sbotc publish '{"type":"post", "branch": "'"$msg_branch"'", "root": "'"$msg_root"'", "text":'${INLINE}',"mentions":[{"link":"'"$id"'","name":"'"$name"'","size":"'"$size"'","type":"'"$type"'"},{"link":"#zenbot"},{"link":"#astroport"}]}'
|
||||
|
||||
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue