From a487bac8c20d1d3fdf092d8db64763273396251d Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 10 Sep 2019 02:47:44 +0900 Subject: Add invite friend script --- README.md | 12 ++++++++++++ rif-invitefriend.sh | 29 +++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100755 rif-invitefriend.sh diff --git a/README.md b/README.md index 7b1f359..40036d8 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ To become a real IPv6 friend, you need to do the following things: - For each of your friends, check whether they are online - Import the friends of your friends and check whether they are online, too! +- Send friend requests (like other platforms!) ### Example: Generating a key with the right comment @@ -196,6 +197,17 @@ automates this process. You can probably just use your mail program for that - and you might even be able to send it IPv6 only! +### Example: Invite a friend + +Live is not great without friends! Let's invite a friend! This is as +easy is this: + +``` +printf 'Hello yournamehere!\n I am looking for real IPv6 friends.\n You find my friends on https://nico.ungleich.cloud/rifkeys.\nHow real IPv6 friends find each other is explained on https://code.ungleich.ch/nico/rif.\n Looking forward to befriend you!' | mail -s "friend request" ipv6@your.friend.example.com +``` + +And obviously this is waaaaaaaaay to long to type, so + ## Finding friends As real IPv6 friends are decentralised, there is no central registry diff --git a/rif-invitefriend.sh b/rif-invitefriend.sh new file mode 100755 index 0000000..6c63010 --- /dev/null +++ b/rif-invitefriend.sh @@ -0,0 +1,29 @@ +#!/bin/sh +# 2019-09-10, Nico Schottelius, Seoul + +if [ $# -ne 4 ]; then + echo "$0: " + echo 'F.i. $0 nico ipv6@nico.ungleich.cloud https://your-url.example.com' + exit 1 +fi + +friend=$1; shift +email=$1; shift +url=$1; shift +name=$1; shift + +keyurl=$url/rifkeys +projecturl=https://code.ungleich.ch/nico/rif + +cat <