-- Leo's gemini proxy
-- Connecting to warmedal.se:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini; lang=en
We had a very serious (read: not at all serious) discussion in the gemini IRC channel about the need for a payment system in geminispace. Something that allows you to donate money to creators, for example.
It needs to be decentralized. Anonymous. Simple. Not some stupid cryptocurrency.
After several minutes of arguments and painstaking compromises we (kensanata and I) reached a consensus. The currency units should be called Gems. Or Gemcoins. We weren't entirely clear on that, but I think we settled for Gems. I made the first implementation of a donation backend, which you are more than welcome to try if you feel like giving me some Gems:
Immediately after my implementation the standards group had a falling out, and kensanata forked the entire currency system:
My solution is objectively better, but you're allowed to be wrong.
For reference, here is my solution:
#!/bin/bash re='^[0-9]+$' if [[ -n ${QUERY_STRING} && ${QUERY_STRING} =~ ${re} ]] ; then printf "20 text/gemini\r\nYou've donated 💎${QUERY_STRING} to ew0k.\nYour account balance is now 💎$(( RANDOM % 100 + 1 ))" else printf "10 How many Gems would you like to donate?\r\n" fi
-- CC0 ew0k, 2021-10-23
-- Response ended
-- Page fetched on Sat May 4 15:40:55 2024