{"id":23113716,"url":"https://github.com/cmdr-nova/post_gen_bot","last_synced_at":"2026-04-28T13:37:29.447Z","repository":{"id":268360595,"uuid":"871285092","full_name":"cmdr-nova/post_gen_bot","owner":"cmdr-nova","description":"A simple post generator bot that operates on spreadsheets.","archived":false,"fork":false,"pushed_at":"2024-10-11T19:05:13.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-19T04:48:55.527Z","etag":null,"topics":["bot","fediverse","generator","mastodon","post"],"latest_commit_sha":null,"homepage":"https://mkultra.monster/@nova_commander","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cmdr-nova.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-11T16:26:46.000Z","updated_at":"2024-10-11T19:05:17.000Z","dependencies_parsed_at":"2024-12-16T10:04:26.478Z","dependency_job_id":null,"html_url":"https://github.com/cmdr-nova/post_gen_bot","commit_stats":null,"previous_names":["cmdr-nova/post_gen_bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cmdr-nova/post_gen_bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmdr-nova%2Fpost_gen_bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmdr-nova%2Fpost_gen_bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmdr-nova%2Fpost_gen_bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmdr-nova%2Fpost_gen_bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cmdr-nova","download_url":"https://codeload.github.com/cmdr-nova/post_gen_bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmdr-nova%2Fpost_gen_bot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261416013,"owners_count":23155030,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","fediverse","generator","mastodon","post"],"created_at":"2024-12-17T03:13:28.861Z","updated_at":"2026-04-28T13:37:29.411Z","avatar_url":"https://github.com/cmdr-nova.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# post_gen_bot\nThis is a little bit of a different bot than the ones I've previously made, in that, *this one* will read specifically from column C of spreadsheets obtained through Google's API, and your own Google Sheets. In my own instance, we're using spreadsheets of all of the Mastodon posts that I've made in a year, and then posting them jumbled and then reassembled, at random, to Mastodon. This requires a little bit of knowledge about how to obtain access to Google's API, and how to generate a key, and then download your credentials for Sheets.\n\nHow to set it up:\n\nFirstly, you're going to want to have a server running, unless you just want to set this up and run it one time just to see how it goes. And then, you'll want to create a new environment for the bot, because you shouldn't just live in open deadspace (it's scary out there).\n\n```\npython3 -m venv post-gen-env\n```\n\nNext, activate the environment.\n```\nsource post-gen-env/bin/activate\n```\nNow make a directory where the bot can live, and have coffee.\n```\nmkdir post-gen-bot\n```\nPay the bot's new home a visit.\n```\ncd post-gen-bot\n```\nMake a requirements.txt in order to make the task of installing everything you need for the bot to run properly simpler.\n```\nnano requirements.txt \n```\nand then insert the contents of the txt file from this repository.\n\nMake a credentials directory where your bot can hide its keys.\n```\nmkdir creds\n```\nOpen the door\n```\ncd creds\n```\nCopy/paste the name of your Google API credentials .json\n```\nnano name_of_your_cred_file.json\n```\nand then paste in the contents of *that* file.\n\nCome out of the closet.\n```\ncd ..\n```\nInstall the packages.\n```\npip install -r requirements.txt\n```\nCreate the bot!\n```\nnano post-gen.py\n```\nand then copy in the contents of the post-gen.py file here from the repository, make sure you edit the credentials path properly, and also your Mastodon URL and access key.\n\nRun, just run, run far away, I ran so far awaaaayyyy, gotta get away?\n```\npython3 post-gen.py\n```\nIt works?\n\nAlright, now set us up the cronjob.\n```\ncrontab -e\n```\n```\n*/30 * * * * post-gen-env/bin/python3 post-gen-bot/post-gen.py\n```\n**You're done!**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmdr-nova%2Fpost_gen_bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmdr-nova%2Fpost_gen_bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmdr-nova%2Fpost_gen_bot/lists"}