pull down to refresh
706 sats \ 2 replies \ @WeAreAllSatoshi 18 Feb \ on: Stacker Saloon
When I first started posting my daily mining comments, I was crafting them by hand.
- Go to my mining pool dashboard, get the sats mined the previous day
- Go to my SN profile, find my last comment and copy the content
- Go to today's saloon post, paste yesterday's comment content into a draft comment
- Update draft comment to reflect new mined sats, new running total, and a link to the previous day's comment
At some point, I started going back to the previous day's comment and adding a comment to it, linking to the next day's comment. Doubly-linked list!
After a little while of doing that, I codified it. I wrote some code that accepts a sats count as input, and does all of the SN posting described above for me. This uses the SN API (yes, it's "unofficial", yes I had to manually bootstrap it with a session cookie, yes it has some keep-alive functionality to refresh the session cookie so I shouldn't have to do that by hand again).
Today, I discovered my mining pool also has an API that I can use. So naturally, I updated my code to also fetch the sats mined automatically too. One less manual step.
We'll see how it goes tomorrow!