{"id":37172562,"url":"https://github.com/ariel17/twitter-echo-bot","last_synced_at":"2026-01-14T20:10:51.240Z","repository":{"id":46234017,"uuid":"419492751","full_name":"ariel17/twitter-echo-bot","owner":"ariel17","description":"Simple POC project using Golang, Docker and AWS to show a lifecycle development.","archived":false,"fork":false,"pushed_at":"2023-08-30T13:55:25.000Z","size":758,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-21T08:13:27.614Z","etag":null,"topics":["bot","go","golang","twitter"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ariel17.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-20T21:19:49.000Z","updated_at":"2021-11-04T16:45:10.000Z","dependencies_parsed_at":"2022-09-16T14:21:52.659Z","dependency_job_id":null,"html_url":"https://github.com/ariel17/twitter-echo-bot","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/ariel17/twitter-echo-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariel17%2Ftwitter-echo-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariel17%2Ftwitter-echo-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariel17%2Ftwitter-echo-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariel17%2Ftwitter-echo-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ariel17","download_url":"https://codeload.github.com/ariel17/twitter-echo-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariel17%2Ftwitter-echo-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28434413,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","go","golang","twitter"],"created_at":"2026-01-14T20:10:50.385Z","updated_at":"2026-01-14T20:10:51.227Z","avatar_url":"https://github.com/ariel17.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build and Publish](https://github.com/ariel17/twitter-echo-bot/actions/workflows/main.yml/badge.svg)](https://github.com/ariel17/twitter-echo-bot/actions/workflows/main.yml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/ariel17/twitter-echo-bot)](https://goreportcard.com/report/github.com/ariel17/twitter-echo-bot)\n[![CircleCI](https://circleci.com/gh/ariel17/twitter-echo-bot/tree/master.svg?style=svg)](https://circleci.com/gh/ariel17/twitter-echo-bot/tree/master)\n[![codecov](https://codecov.io/gh/ariel17/twitter-echo-bot/branch/master/graph/badge.svg?token=8RSF7F1NIQ)](https://codecov.io/gh/ariel17/twitter-echo-bot)\n\n# Twitter echo bot\n\nThis is a very simple application, a proof of concept as working code written in\nGolang, that access Twitter API to send an answer in the name of the account\nowner for those tweets that matches the query pattern.\n\n## Example\n\n[See it on Twitter.](https://twitter.com/ariel_17_/status/1451647851180740609)\n\n![Automated response](./docs/example.png)\n\n## Docker image\n\nThe Docker image is hosted at [Docker Hub](https://hub.docker.com/r/ariel17/twitter-echo-bot)\nand it is build and pushed through [GitHub Actions](./actions).\n\n![Docker repository](./docs/docker.png)\n\n### How to build it\n\n```bash\n$ docker build -t twitter-echo-bot .\n```\n\n### How to execute it\n\n```bash\n$ docker run -p 8080:8080 \\\n    -e CONSUMER_API_KEY=\"key\" \\\n    -e CONSUMER_API_SECRET=\"secret\" \\\n    -e ACCESS_TOKEN=\"token\" \\\n    -e ACCESS_TOKEN_SECRET=\"token_secret\" \\\n    -e SEARCH_QUERY=\"#ariel17echobot\" \\\n    -e GREET_TEXT=\"Hellou!\" \\\n    -e RESPONSE_TEXT=\"bip bop bip!\" \\\n    -e JOB_SECONDS=10 \\\n    twitter-echo-bot\n```\n\nUsing an `.env` is preferred, also the deployment process uses it to provide\nthe required settings to the application instead of setting raw environment\nvariables. **Watch out to not track it!**\n\n```bash\n$ docker run --env-file=.env twitter-echo-bot\n```\n\n### Using make commands\n\nThis project includes a Makefile to avoid writting all those commands by hand\nand go directly to the point with the same results:\n\n```bash\n$ make build  # to test and build the image with :dev tag\n\n$ make run  # builds AND executes the application in your terminal\n```\n\n## Production deployment\n\nThe deployment is made using [Terraform](https://www.terraform.io/) to a AWS\nt2.nano instance. The execution plan works as follows:\n\n![Execution plan](./docs/graph.svg)\n\n:warning: This configuration uses SSH to provision the Docker service, to pull\nand execute the image; it may not be the most secure option for you.\n\n### Development lifecycle\n\n![Services integration diagram](./docs/lifecycle.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fariel17%2Ftwitter-echo-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fariel17%2Ftwitter-echo-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fariel17%2Ftwitter-echo-bot/lists"}