{"id":16347901,"url":"https://github.com/victoriadrake/author-afk","last_synced_at":"2026-01-11T22:57:04.906Z","repository":{"id":82779087,"uuid":"167061658","full_name":"victoriadrake/author-afk","owner":"victoriadrake","description":"Post tweets with RSS links using AWS Lambda when you're afk.","archived":false,"fork":false,"pushed_at":"2019-06-18T15:14:20.000Z","size":8,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-02T05:32:03.751Z","etag":null,"topics":["aws-lambda","aws-sam","rss","tweeter","twitter"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/victoriadrake.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-01-22T20:23:08.000Z","updated_at":"2024-06-19T06:36:18.917Z","dependencies_parsed_at":"2023-07-04T08:32:22.307Z","dependency_job_id":null,"html_url":"https://github.com/victoriadrake/author-afk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victoriadrake%2Fauthor-afk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victoriadrake%2Fauthor-afk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victoriadrake%2Fauthor-afk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victoriadrake%2Fauthor-afk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/victoriadrake","download_url":"https://codeload.github.com/victoriadrake/author-afk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239566899,"owners_count":19660375,"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":["aws-lambda","aws-sam","rss","tweeter","twitter"],"created_at":"2024-10-11T00:46:55.394Z","updated_at":"2026-01-11T22:57:04.892Z","avatar_url":"https://github.com/victoriadrake.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# authorAFK\n\nPost tweets with RSS links using AWS Lambda when you're afk.\n\n# How it works\n\nWritten in Go, this AWS Lambda function will choose a random RSS item from one of any number of RSS feed links and post it to your Twitter timeline upon invocation.\n\nOptionally, you may add text to the Tweet in front or after the link.\n\n# Set up\n\nFor a full walkthrough with screenshots on creating a Lambda function and uploading the code, read [this blog post](https://victoria.dev/verbose/free-twitter-bot-aws-lambda/). Skip to setting environment variables at [this link](https://victoria.dev/verbose/free-twitter-bot-aws-lambda/#2-configure-your-function).\n\nLambda environment variables you can set are as follows, with example values:\n\n```\n// Required variables\nTWITTER_CONSUMER_KEY        = TWITTER_API_VAR\nTWITTER_CONSUMER_SECRET     = TWITTER_API_VAR\nTWITTER_ACCESS_TOKEN        = TWITTER_API_VAR\nTWITTER_ACCESS_TOKEN_SECRET = TWITTER_API_VAR\nRSS_FEEDS                   = https://blog.com/index.xml;https://anotherblog.com/index.xml\n\n// Optional variables\nPREFIX                      = \"Here's a post from my blog.\"\nSUFFIX                      = \"#awesome\"\n```\n\nYou will need to [create a new Twitter application and generate API keys](https://apps.twitter.com/) for the `TWITTER_API_VAR` values.\n\nThe `RSS_FEEDS` variable must be any number of RSS URLs beginning with `http://` or `https://` and ending in `.xml` or `.rss`. It will also parse `.atom` For more on how feeds are parsed, see [gofeed](https://github.com/mmcdole/gofeed). The program expects any more than one URLs to be separated by a `;`.\n\n# update.sh\n\nThis handy bash script is included to help you upload your function code to Lambda. It requires [AWS Command Line Interface](https://aws.amazon.com/cli/). To set up, do `pip install awscli` and follow these instructions for [Quick Configuration](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html).\n\n# AWS SAM CLI\n\nYou can use [AWS Serverless Application Model CLI](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/what-is-sam.html) with this repository to test your function locally. __If you test this program locally, it will act on your real live timeline.__\n\nFind installation and getting started guide here: [AWS SAM Reference](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-reference.html)\n\nTo run locally, AWS SAM requires a `template.yaml` with your environment variables (among other things) [in it](https://github.com/awslabs/aws-sam-cli/issues/139#issuecomment-334977285). __For this reason, `template.yaml` should be included in `.gitignore` in this repository.__ You can generate a sample template with `sam init`.\n\nTo build the program:\n\n```shell\nGOOS=linux go build -o authorAFK\n```\n\nIf you're not building the function on a Linux machine, you will need to specify the `GOOS` and `GOARCH` environment variables. This allows Go to build your function for another system architecture and ensure compatibility.\n\n## Local development\n\nYou can invoke this Lambda function locally by running:\n\n```bash\nsam local invoke --no-event\n```\n\nSee [Serverless Application Model (SAM) HOWTO Guide](https://github.com/awslabs/serverless-application-model/blob/master/HOWTO.md) for more details on how to get started.\n\n# Contributing\n\nPull requests for bug fixes and improvements are always welcome.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictoriadrake%2Fauthor-afk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvictoriadrake%2Fauthor-afk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictoriadrake%2Fauthor-afk/lists"}