From 0ae12ce1c54cdfc8e8dfb0ed2e762af8f9818f2d Mon Sep 17 00:00:00 2001 From: qo-op Date: Mon, 11 May 2020 04:38:36 +0200 Subject: [PATCH] [Flash QRCode] --- zen/ssb_INIT.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/zen/ssb_INIT.sh b/zen/ssb_INIT.sh index 6bca3b4..771d7e8 100755 --- a/zen/ssb_INIT.sh +++ b/zen/ssb_INIT.sh @@ -135,9 +135,12 @@ $g1balance " # IF no AVATAR, publish message with QRCode if [[ ! $(file "/tmp/_g1.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"'"}]}' + sbotc publish '{"type":"post","text":"[Flash QRCode]('"$id"') with [Cesium](https://cesium.app).\n Thank you.","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"') '"$g1pub"'","mentions":[{"link":"'"$id"'","name":"'"$name"'","size":'"$size"',"type":"'"$type"'"}]}' + # Publish only if new avatar + if [[ $(diff /tmp/_g1.avatar.png ~/.zen/ipfs/.$ipfsnodeid/G1SSB/_g1.avatar.png) ]]; then + 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 fi echo "