Option Message to /tmp/A_liking_me_NO_ipfstryme.txt
This commit is contained in:
parent
26f658b4fb
commit
8e67c82ece
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
########################################################################
|
########################################################################
|
||||||
# Author: Fred (support@qo-op.com)
|
# Author: Fred (support@qo-op.com)
|
||||||
# Version: 2020.04.27
|
# Version: 2020.12.03
|
||||||
# License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/)
|
# License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/)
|
||||||
########################################################################
|
########################################################################
|
||||||
MY_PATH="`dirname \"$0\"`" # relative
|
MY_PATH="`dirname \"$0\"`" # relative
|
||||||
|
@ -17,8 +17,7 @@ ME="${0##*/}"
|
||||||
# GET GCHANGE FRIENDS AND FIND THEIR IPFS ID TO "ipfs swarm connect" THEM
|
# GET GCHANGE FRIENDS AND FIND THEIR IPFS ID TO "ipfs swarm connect" THEM
|
||||||
########################################################################'
|
########################################################################'
|
||||||
|
|
||||||
## TODO: REMOVE DUPLICATES
|
## TODO : Beware of liking_me FLOOD & Invite $liking_me people to my #Swarm0
|
||||||
## TODO: MODE : COOL, STRAIGHT, ARMORED
|
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
## CONNECT GLOBAL "ipfs.io" ## DANGEROUS DATA LEAK only for short time...
|
## CONNECT GLOBAL "ipfs.io" ## DANGEROUS DATA LEAK only for short time...
|
||||||
|
@ -45,7 +44,7 @@ friend_of_mine_count=0
|
||||||
# Let's look for Friends and "IPFS swarm connect" with them
|
# Let's look for Friends and "IPFS swarm connect" with them
|
||||||
########################################################################
|
########################################################################
|
||||||
cd ~/.zen/astroport/zen/cesium-messaging
|
cd ~/.zen/astroport/zen/cesium-messaging
|
||||||
# 1. Get Gchange "liking_me" list
|
# 1. Get Gchange "liking_me" people list
|
||||||
for liking_me in $(./jaklis.py like | jq -r '.likes[].issuer');
|
for liking_me in $(./jaklis.py like | jq -r '.likes[].issuer');
|
||||||
do
|
do
|
||||||
friend_of_mine=$(./jaklis.py like -p $liking_me | jq -r '.yours');
|
friend_of_mine=$(./jaklis.py like -p $liking_me | jq -r '.yours');
|
||||||
|
@ -58,7 +57,7 @@ do
|
||||||
ipfs bootstrap add $adresse;
|
ipfs bootstrap add $adresse;
|
||||||
ipfsadd=$((ipfsadd+1))
|
ipfsadd=$((ipfsadd+1))
|
||||||
done;
|
done;
|
||||||
[[ $ipfsadd == 0 ]] && echo "My friend did not sent ipfstryme message..." # && ./jaklis.py send -d $liking_me -t "Gchange IPFS" -m "Rejoins moi sur https://qo-op.com"
|
[[ $ipfsadd == 0 ]] && echo "My friend did not sent ipfstryme message..." && echo "$liking_me" >> /tmp/A_liking_me_NO_ipfstryme.txt # && ./jaklis.py send -d $liking_me -t "Gchange IPFS" -m "Rejoins moi sur https://qo-op.com"
|
||||||
# 4. liking_me IS NOT a friend_of_mine!!
|
# 4. liking_me IS NOT a friend_of_mine!!
|
||||||
[[ $friend_of_mine == null ]] && echo "I am NOT LIKING $liking_me";
|
[[ $friend_of_mine == null ]] && echo "I am NOT LIKING $liking_me";
|
||||||
liking_me_count=$((liking_me_count+1))
|
liking_me_count=$((liking_me_count+1))
|
||||||
|
@ -70,4 +69,7 @@ __________________________________________
|
||||||
HERE IS MY #SWARM0"
|
HERE IS MY #SWARM0"
|
||||||
ipfs swarm peers
|
ipfs swarm peers
|
||||||
|
|
||||||
|
echo "You could send a message"
|
||||||
|
cat /tmp/A_liking_me_NO_ipfstryme.txt | uniq > /tmp/A_UNIQ_liking_me_NO_ipfstryme.txt
|
||||||
|
cp /tmp/A_UNIQ_liking_me_NO_ipfstryme.txt /tmp/A_liking_me_NO_ipfstryme.txt
|
||||||
|
cat /tmp/A_liking_me_NO_ipfstryme.txt
|
||||||
|
|
Loading…
Reference in New Issue