Storytime.
Yesterday an automation on activepieces.com that publishes a toot when I release a new episode of my podcast went nuts and published about 300 posts. It consumed my entire monthly quota.
I'm sorry if you were affected by the unintentional spamming.
So, now I needed to delete +300 posts. Also Mastodon limits delete actions to 30 each 30 minutes.
So I asked ChatGPT to build me a script that did that.
=> More informations about this toot | More toots from webjac@mastodon.social
The script is meant to delete all posts from a specific day, deletes 30 posts, waits 30 minutes and does it again and so and so…
ChatGPT provided me the script, the instructions to run it on my mac, all the parts I needed to fill (tokens, secret keys etc)
I did that, the script had a couple of issues that after a couple of iterations I managed to solve either both with ChatGPT's help and not. (it started deleting posts from my timeline, not my posts xD)
And by last night it did it all!
=> More informations about this toot | More toots from webjac@mastodon.social
A couple of posts were deleted that I did not want to, but no big deal.
Please forgive me for making you scroll like crazy and see all that spam.
I never coded in Python but I've coded enough to understand the script. I'm amazed by how fun and interesting this little thing was with ChatGPT.
Computers are amazing (but also stupid!)
I’ll leave you with a screenshot of the script.
=> More informations about this toot | More toots from webjac@mastodon.social This content has been proxied by September (3851b).Proxy Information
text/gemini