From abad918d16c6524d47e2b5d2da32fb76a6041d21 Mon Sep 17 00:00:00 2001 From: Boris Paing Date: Sat, 14 Mar 2020 01:50:28 +0100 Subject: [PATCH] Uncomment useful lines --- process-likes-g1tx.sh | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/process-likes-g1tx.sh b/process-likes-g1tx.sh index 9253be5..5fd61d8 100755 --- a/process-likes-g1tx.sh +++ b/process-likes-g1tx.sh @@ -3,23 +3,19 @@ # Authors: # [@cel](@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519) # [@Fred](@9BbJwPDjcyIqrOUPNn0nJZBduWdIrpMk3Cjz5MP361s=.ed25519) +# [@Boris](@l5nYExWYIgDLV6BYHOJPoI97jIUyTdSm8CTLpQ0XeOg=.ed25519) # Version: 1.0 # License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/) ########################################################################################### # ADD G1 Layer 10 LOVE to message writer you like ! -# INSTALL silkaj sbotc # PREVENT DOUBLE PAYEMENT ############################################################################################ + fn_exists() { # appended double quote is an ugly trick to make sure we do get a string -- if $1 is not a known command, type does not output anything [ `type -t $1`"" == 'file' ] } -########################################################################################### -####################### G1 SSB ACCOUNT MANAGER ############################################ -########################################################################################### -########################################################################################## - # Let's get G1 public and private keys g1pub=$(cat ~/.ssb/secret.dunikey | grep "pub" | cut -d ' ' -f 2) g1priv=$(cat ~/.ssb/secret.dunikey | grep "sec" | cut -d ' ' -f 2) @@ -142,14 +138,13 @@ do sleep 3 #printf '%s\n' "silkaj -af --file ~/.ssb/secret.dunikey tx --output $g1_author --amountUD 0.1 --comment _SSB:LIKE:$target_id" - # silkaj -p "$duniter_server" -af --file ~/.ssb/secret.dunikey tx --output $g1_author --amountUD 0.1 --comment "_SSB:LIKE:$target_id" -y 2>/dev/null - + silkaj -p "$duniter_server" -af --file ~/.ssb/secret.dunikey tx --output $g1_author --amountUD 0.1 --comment "_SSB:LIKE:$target_id" -y 2>/dev/null #thank_you_msg="Hi there! I liked your post and thus sent you Ğ1 #libremoney. We don\'t really know how you may be able to use it but, hey, that is still money, right? Cheers!" - sbotc publish '{"type":"post","text":"Thanks for this post ; I have just sent you G1 #libremoney. Claim it! ", "branch": "'"$target_id"'", "root": "'"$root_id"'"}' + sbotc publish '{"type":"post","text":"Thanks for this post ; I have just sent you G1 libre money. Claim it at [https://git.p2p.legal/Axiom-Team/ssb-g1like](https://git.p2p.legal/Axiom-Team/ssb-g1like) ", "branch": "'"$target_id"'", "root": "'"$root_id"'"}' 2>&1>/dev/null - #sleep 60 # DO NOT OVER CHARGE DUNITER + sleep 60 # DO NOT OVER CHARGE DUNITER else echo "I LIKE MY MESSAGE $target_id" fi