{"id":17052863,"url":"https://github.com/zquestz/go-chatgpt-twitter-bot","last_synced_at":"2026-04-29T22:03:13.955Z","repository":{"id":174096987,"uuid":"651768180","full_name":"zquestz/go-chatgpt-twitter-bot","owner":"zquestz","description":"Twitter bot backed by ChatGPT","archived":false,"fork":false,"pushed_at":"2025-12-22T05:07:30.000Z","size":54,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-07T22:00:09.307Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/zquestz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","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},"funding":{"github":["zquestz"]}},"created_at":"2023-06-10T03:24:32.000Z","updated_at":"2025-12-22T05:07:33.000Z","dependencies_parsed_at":"2024-06-19T18:56:40.453Z","dependency_job_id":"8b26deca-67af-4eb9-9c94-7a45af4add6a","html_url":"https://github.com/zquestz/go-chatgpt-twitter-bot","commit_stats":null,"previous_names":["zquestz/go-chatgpt-twitter-bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zquestz/go-chatgpt-twitter-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zquestz%2Fgo-chatgpt-twitter-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zquestz%2Fgo-chatgpt-twitter-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zquestz%2Fgo-chatgpt-twitter-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zquestz%2Fgo-chatgpt-twitter-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zquestz","download_url":"https://codeload.github.com/zquestz/go-chatgpt-twitter-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zquestz%2Fgo-chatgpt-twitter-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32445555,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T20:22:27.477Z","status":"ssl_error","status_checked_at":"2026-04-29T20:22:26.507Z","response_time":110,"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":[],"created_at":"2024-10-14T10:10:44.663Z","updated_at":"2026-04-29T22:03:13.942Z","avatar_url":"https://github.com/zquestz.png","language":"Go","funding_links":["https://github.com/sponsors/zquestz"],"categories":[],"sub_categories":[],"readme":"[![License][License-Image]][License-URL] \n\n# go-chatgpt-twitter-bot\n\nTwitter bot backed by ChatGPT.\n\n## Install\n\n```\ngo get -v github.com/zquestz/go-chatgpt-twitter-bot\ncd $GOPATH/src/github.com/zquestz/go-chatgpt-twitter-bot\nmake\nmake install\n```\n\n## ENV Setup\n\nThere are quite a few API keys and ENV vars to setup. You can use a `.env` file if you want. We use the Twitter v2 API, and OpenAI.\n\n```\nTWITTER_BEARER_TOKEN=\nTWITTER_CONSUMER_API_KEY=\nTWITTER_CONSUMER_SECRET=\nTWITTER_ACCESS_TOKEN=\nTWITTER_ACCESS_SECRET=\nOPENAI_API_KEY=\nOPENAI_CHARACTER_BACKGROUND=\n```\n\nMake sure to setup a character background. This will be the personality that will post tweets!\n\n## Usage\n\n```\nUsage:\n  go-chatgpt-twitter-bot \u003chandle\u003e [flags]\n\nFlags:\n  -b, --bot                 launch in bot mode\n      --completion string   completion script for bash, zsh, fish or powershell\n  -d, --dryrun              dryrun mode\n  -h, --help                help for go-chatgpt-twitter-bot\n  -p, --prompt string       prompt for the generator (default \"Generate a tweet!\")\n      --userid string       twitter userid (default \"me\")\n  -v, --verbose             verbose mode\n      --version             display version\n```\n\n## Autocompletion\n\nAutocompletion is supported. To set up autocompletion:\n\n### Bash Linux\n\n```\ngo-chatgpt-twitter-bot --completion bash \u003e /etc/bash_completion.d/go-chatgpt-twitter-bot\n```\n\n### Bash MacOS\n\n```\ngo-chatgpt-twitter-bot --completion bash \u003e /usr/local/etc/bash_completion.d/go-chatgpt-twitter-bot\n```\n\n\n### Zsh\n\nGenerate a `_go-chatgpt-twitter-bot` completion script and put it somewhere in your `$fpath`:\n\n```\ngo-chatgpt-twitter-bot --completion zsh \u003e /usr/local/share/zsh/site-functions/_go-chatgpt-twitter-bot\n```\n\n### Fish\n\n```\ngo-chatgpt-twitter-bot --completion fish \u003e ~/.config/fish/completions/go-chatgpt-twitter-bot\n```\n\n### Powershell\n\n```\n(\u0026 go-chatgpt-twitter-bot --completion powershell) | Out-String | Invoke-Expression\n```\n\n## Configuration\n\nTo setup your own default configuration just create `~/.config/go-chatgpt-twitter-bot/config`. The configuration file is in UCL format. JSON is also fully supported as UCL can parse JSON files.\n\nFor more information about UCL visit:\n[https://github.com/vstakhov/libucl](https://github.com/vstakhov/libucl)\n\nThe following keys are supported:\n\n* bot (launch in bot mode) - Unfinished\n* character_background (bot personality)\n* dryrun (don't post to twitter)\n* handle (twitter handle)\n* prompt (prompt for the generator)\n* userid (twitter userid)\n* verbose (verbose mode)\n\n## Contributors\n\n* [Josh Ellithorpe (zquestz)](https://github.com/zquestz/)\n\n## License\n\ngo-chatgpt-twitter-bot is released under the MIT license.\n\n[License-URL]: http://opensource.org/licenses/MIT\n[License-Image]: https://img.shields.io/npm/l/express.svg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzquestz%2Fgo-chatgpt-twitter-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzquestz%2Fgo-chatgpt-twitter-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzquestz%2Fgo-chatgpt-twitter-bot/lists"}