messages...

This commit is contained in:
qo-op 2020-12-03 16:03:40 +01:00
parent e11269b8e1
commit 2f6d30ca38
1 changed files with 8 additions and 7 deletions

View File

@ -37,7 +37,7 @@ IPFSNODEID=$(ipfs id -f='<id>\n')
# Force Strict #swarm0 !!?
# ipfs bootstrap rm --all
echo "" > /tmp/A_liking_me_NO_ipfstryme.txt
liking_me_count=0
friend_of_mine_count=0
########################################################################
@ -57,19 +57,20 @@ do
ipfs bootstrap add $adresse;
ipfsadd=$((ipfsadd+1))
done;
[[ $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"
[[ $ipfsadd == 0 ]] && echo "My friend did not sent ipfstryme message..." && echo "$liking_me" >> /tmp/A_liking_me_NO_ipfstryme.txt
# 4. liking_me IS NOT a friend_of_mine!!
[[ $friend_of_mine == null ]] && echo "I am NOT LIKING $liking_me";
liking_me_count=$((liking_me_count+1))
done
cd -
echo "I have $friend_of_mine_count friends amoung $liking_me_count liking me people
__________________________________________
HERE IS MY #SWARM0"
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
for line in $(cat /tmp/A_liking_me_NO_ipfstryme.txt | uniq); do
echo "./jaklis.py send -d $liking_me -t 'Astroport Gchange IPFS' -m 'Rejoins mon #Swarm0 \n https://qo-op.com'"
done
cd -