{"id":19687341,"url":"https://github.com/phosphore/twitter-bot","last_synced_at":"2026-05-13T18:13:37.189Z","repository":{"id":68079112,"uuid":"28449524","full_name":"phosphore/twitter-bot","owner":"phosphore","description":"A skeleton to create a bot that replies when you mention it, easily customizable!","archived":false,"fork":false,"pushed_at":"2014-12-31T08:43:10.000Z","size":908,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-10T07:47:59.458Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","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/phosphore.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}},"created_at":"2014-12-24T13:20:14.000Z","updated_at":"2014-12-31T08:43:12.000Z","dependencies_parsed_at":"2023-02-21T10:15:48.339Z","dependency_job_id":null,"html_url":"https://github.com/phosphore/twitter-bot","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/phosphore%2Ftwitter-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phosphore%2Ftwitter-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phosphore%2Ftwitter-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phosphore%2Ftwitter-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phosphore","download_url":"https://codeload.github.com/phosphore/twitter-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240993952,"owners_count":19890419,"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":[],"created_at":"2024-11-11T18:33:54.621Z","updated_at":"2026-05-13T18:13:32.170Z","avatar_url":"https://github.com/phosphore.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"twitter-bot\n===========\n\nA skeleton to create a bot that replies when you mention it, easily customizable :package:\n\n   :wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash:\n\n##  Installation\n\n1. Make sure you have [Composer](http://getcomposer.org)\n2. Clone the twitter-bot repository into the workbench and install dependencies\n\t\n\t```\n\tgit clone https://github.com/phosphore/twitter-bot.git workbench/twitter-bot\n\tcd workbench/twitter-bot\n\tcomposer install\n\t```\n3. Register an [application](http://apps.twitter.com) and change the consumerKey, consumerSecret, accessToken and accessTokenSecret from 'events/bot.json'\n4. Customize the replies\n5. Open bot.php and change the path for your json configuration file\n6. Set up a cron job to execute bot.php\n\nYou may also want to play with the code in bot.php. I tried to comment it as much as possible for your understanding, but you may need to read the [Twitter API's doc](https://dev.twitter.com/rest/public) to have an idea of what kind of objects are returned.\n\n##  Demo\n[Squarify bot](https://twitter.com/squarifybot) uses this piece of software. You can tweet an image mentioning *@squarifybot* and it will reply with the modified picture.\n\n   :wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash::wavy_dash:\n\n:space_invader: Use it responsibly :space_invader:\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphosphore%2Ftwitter-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphosphore%2Ftwitter-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphosphore%2Ftwitter-bot/lists"}