{"id":16736760,"url":"https://github.com/hursey013/itstucson-bot","last_synced_at":"2026-05-17T19:38:07.562Z","repository":{"id":99274338,"uuid":"293342209","full_name":"hursey013/itstucson-bot","owner":"hursey013","description":"Highlighting misspellings of Tucson, AZ, one embarrassing tweet at a time.","archived":false,"fork":false,"pushed_at":"2020-12-10T21:13:40.000Z","size":139,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-19T16:46:00.837Z","etag":null,"topics":["firebase","firebase-function","firebase-realtime-database","twitter-api","twitter-bot"],"latest_commit_sha":null,"homepage":"https://twitter.com/itstucson","language":"JavaScript","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/hursey013.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-06T18:52:46.000Z","updated_at":"2020-12-10T21:13:42.000Z","dependencies_parsed_at":"2023-04-06T00:21:58.206Z","dependency_job_id":null,"html_url":"https://github.com/hursey013/itstucson-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hursey013/itstucson-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hursey013%2Fitstucson-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hursey013%2Fitstucson-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hursey013%2Fitstucson-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hursey013%2Fitstucson-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hursey013","download_url":"https://codeload.github.com/hursey013/itstucson-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hursey013%2Fitstucson-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33152131,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","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":["firebase","firebase-function","firebase-realtime-database","twitter-api","twitter-bot"],"created_at":"2024-10-13T00:23:28.366Z","updated_at":"2026-05-17T19:38:07.545Z","avatar_url":"https://github.com/hursey013.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# itstucson-bot\n\n\u003e Highlighting misspellings of Tucson, AZ, one embarrassing tweet at a time.\n\n## Introduction\n\nSimple bot which uses the Twitter Search API to find occurrences of `Tucson` being misspelled as `Tuscon`. Uses a scheduled Firebase Function to run the search at regular intervals and then retweets any matches. The `id` of the most recently retweeted match is persisted to the RealTime database to prevent duplicate tweets.\n\nFurther reading:\n\n- [Firebase SDK for Cloud Functions](https://firebase.google.com/docs/functions)\n- [Twitter Standard Search API](https://developer.twitter.com/en/docs/twitter-api/v1/tweets/search/api-reference/get-search-tweets)\n\n## Functions code\n\nSee file [functions/index.js](functions/index.js) for the code.\n\nThe dependencies are listed in [functions/package.json](functions/package.json).\n\n## Initial setup\n\n### Clone this repo\n\n- Clone or download this repo and open the `itstucson-bot` directory.\n\n### Create a Firebase project\n\n- Create a Firebase Project using the [Firebase Developer Console](https://console.firebase.google.com)\n- Enable billing on your project by switching to the Blaze or Flame plan. See [pricing](https://firebase.google.com/pricing/) for more details. This is required to allow requests to non-Google services within the Function.\n- Install [Firebase CLI Tools](https://github.com/firebase/firebase-tools) if you have not already, and log in with `firebase login`.\n- Configure this sample to use your project using `firebase use --add` and select your project.\n\n### Install dependencies and add environment variables\n\n- Install dependencies locally by running: `cd functions; npm i; cd -`\n- [Add your Twitter API credentials](https://developer.twitter.com/) to the Firebase config:\n  ```bash\n  firebase functions:config:set \\\n  twitter.consumer_key=\u003cYOUR TWITTER CONSUMER KEY\u003e \\\n  twitter.consumer_secret=\u003cYOUR TWITTER CONSUMER SECRET\u003e \\\n  twitter.access_token=\u003cYOUR TWITTER ACCESS TOKEN\u003e \\\n  twitter.access_token_secret=\u003cYOUR TWITTER ACCESS TOKEN SECRET\u003e \\\n  ```\n\n### Modify function\n\nThere are a number of variables which can be customized within the function:\n\n- `keyword` - set the `correct` and `incorrect` spellings of your target keyword\n- `query` - any additional search filters you would like to include in the query\n- `interjections` - an array of interjections that are randomly used when retweeting matches\n\nThe function will also look for an `ignore` object in the RealTime database containing an array of terms which, if matched, will cause the tweet to be ignored.\n\n### Deploy the app to production\n\n- Deploy your function using `firebase deploy --only functions`\n- By default, the function will be run every 15 minutes\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhursey013%2Fitstucson-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhursey013%2Fitstucson-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhursey013%2Fitstucson-bot/lists"}