{"id":13393489,"url":"https://github.com/karan/fleets","last_synced_at":"2025-04-13T11:30:49.395Z","repository":{"id":44601288,"uuid":"269517302","full_name":"karan/fleets","owner":"karan","description":"Automatically delete tweets, retweets, and favorites.","archived":false,"fork":false,"pushed_at":"2022-02-05T15:57:28.000Z","size":3030,"stargazers_count":90,"open_issues_count":3,"forks_count":11,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-04T23:29:49.575Z","etag":null,"topics":["cron","deleting-tweets","fleets","retweets","twitter-api","twitter-bot"],"latest_commit_sha":null,"homepage":"https://goel.io/fleets","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/karan.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}},"created_at":"2020-06-05T02:58:25.000Z","updated_at":"2024-10-30T22:14:17.000Z","dependencies_parsed_at":"2022-09-15T19:00:34.186Z","dependency_job_id":null,"html_url":"https://github.com/karan/fleets","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/karan%2Ffleets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karan%2Ffleets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karan%2Ffleets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karan%2Ffleets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karan","download_url":"https://codeload.github.com/karan/fleets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248705503,"owners_count":21148549,"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":["cron","deleting-tweets","fleets","retweets","twitter-api","twitter-bot"],"created_at":"2024-07-30T17:00:54.094Z","updated_at":"2025-04-13T11:30:48.863Z","avatar_url":"https://github.com/karan.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# fleets\n\n*Nothing is forever. Except the Internet.*\n\nAutomatically delete tweets, retweets, and favorites.\n\nHeavily based on https://github.com/victoriadrake/ephemeral.\n\n## How it works\n\nDepending on the schedule you set, this bot will:\n\n- Read config file\n- Get your timeline\n- Delete all tweets older than `MAX_TWEET_AGE`\n- Unfavorite tweets older than `MAX_TWEET_AGE`\n- (Optional) Ping healthcheck URLs\n\nYou can set `DRY_RUN=true` to print all actions it will take instead of actually deleting tweets.\n\nThe tool does not take into account Twitter rate limits, but it does sleep for a few seconds between each Twitter API call.\n\n## Setup\n\nCopy and create a `prod.env` from `template.env`. Look at comments for values (then delete the comments).\n\n## Build and Run\n\n### Run\n\nSet `ENV_FILE_PATH` to the file that contains the env vars.\n\n```\n$ ENV_FILE_PATH=sandbox.env go run main.go\n```\n\n## Build\n\nSet `ENV_FILE_PATH` to the file that contains the env vars. Set `GOOS` to your target platform.\n\n```\n$ GOOS=linux go build -ldflags=\"-d -s -w\" -o fleets main.go \u0026\u0026 chmod +x fleets\n$ ENV_FILE_PATH=sandbox.env ./fleets\n```\n\n## Cron\n\nYou can use cron to run the script. Example to run it every day at 4pm:\n\n```\nDATEVAR=date +%Y-%m-%d\n0 16 * * * ENV_FILE_PATH=/home/prod.env /home/fleets \u003e\u003e /home/cron-$($DATEVAR).log 2\u003e\u00261\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaran%2Ffleets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaran%2Ffleets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaran%2Ffleets/lists"}