-- Leo's gemini proxy

-- Connecting to warmedal.se:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini; lang=en

You Wanna Help My Plant?


I've spoken a lot about AstroBotany on here. It's awesome.


My plant is currently getting increasingly closer to 600th generation, and I can and do harvest it several times a day. But harvesting is a pretty big operation with many gemini requests, each one carrying with it a TLS handshake.


app/plant/harvest, which returns a page where you're asked if you're sure.

app/plant/harvest/confirm, which returns status 10 and prompts you to submit "Goodbye <plant name>".

app/plant/harvest/confirm?Goodbye%20PlantName, which returns a redirect path.

Then there's four epilogue pages to go through. They're lovely, but after seeing them nearly 600 times I don't feel like I need them any more.

Then coming back to the plant page.

Then watering, which gives a redirect back to the plant page.

A new request for the plant page, of course.

Back at the plant page I click the link to fertilise, which also gives a redirect back to the plant page.

And then the plant page is requested yet again.


I wanted to reduce the number of requests I make in this cycle, so I made a script and made it a CGI script I placed on my capsule. When I tell the script to harvest it makes only these calls:


app/plant/harvest/confirm?Goodbye%20John (I decided that all my plants will be named John, saving me from having to parse out the name.)

app/plant/water

app/plant/fertilize

app/plant/rename?John


Five requests instead of 12.


But hold on. I have this script on my capsule now to be able to harvest from my phone. While it's there, wouldn't it be fun if you could all do stuff with my plant? No need for you to authenticate, because you call the script and the script authenticates as me!


Crazy dangerous? Nah, not really. You can only give the commands I have approved: shake to give me gold (currently amasses the cap of 100 coins in less than half an hour), search for petals to pick, and harvest.


Here's my plant. Have fun!

Here's AstroBotany itself, which you should definitely play.


-- CC0 ew0k, 2022-07-29

-- Response ended

-- Page fetched on Sat May 4 15:45:12 2024