{"id":16991955,"url":"https://github.com/alectrocute/hide-and-google","last_synced_at":"2026-05-18T11:31:55.558Z","repository":{"id":106113249,"uuid":"118132630","full_name":"alectrocute/hide-and-google","owner":"alectrocute","description":"twitter's hardest and most international game of hide-n-go-seek.","archived":false,"fork":false,"pushed_at":"2018-01-19T14:42:15.000Z","size":3353,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-14T22:34:07.950Z","etag":null,"topics":["bot","game","google","javascript","maps","nodejs","street","twitter","view"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alectrocute.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-19T14:08:51.000Z","updated_at":"2018-08-25T08:11:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"7ef05ef9-8b62-4eec-bf4f-07a05ab1ec54","html_url":"https://github.com/alectrocute/hide-and-google","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/alectrocute%2Fhide-and-google","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alectrocute%2Fhide-and-google/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alectrocute%2Fhide-and-google/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alectrocute%2Fhide-and-google/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alectrocute","download_url":"https://codeload.github.com/alectrocute/hide-and-google/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244902926,"owners_count":20529115,"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":["bot","game","google","javascript","maps","nodejs","street","twitter","view"],"created_at":"2024-10-14T03:27:53.193Z","updated_at":"2026-05-18T11:31:50.522Z","avatar_url":"https://github.com/alectrocute.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hide and Google 🤖\r\n*Hide and Google* is a twitter-bot that runs server-side (or client-side, if you wanted) to play the world's most difficult and adventerous game of hide-n-go-seek. Utilizing a variety of API's such as [twit](https://github.com/ttezel/twit) and the free Google Street View API, this little piece of [Node.js](nodejs.org) Javascript can actively monitor for responses on tweets and run itself.\r\n\r\n![screenshot](https://i.imgur.com/EiiYCkp.png)\r\n\r\n#### Current development status [1.0.0]\r\nAs of Jan. 2018 - this is barely built up. Meaning – It's probably unstable since I just wrote it. But it seems to work... Feel free to fork and have fun under the [GNU AGPLv3](https://www.gnu.org/licenses/agpl-3.0.en.html) license but **please note** a large majority of this source code is likely to be overwritten or heavily modified on a day-to-day basis.\r\n\r\n##### Script workflow\r\n\r\n  - Searches downloaded list of city names and filters names that are just too difficult to spell in English\r\n  - Sends an API request to Google to see if a random street view .JPG is available in the city.\r\n  - Since Google doesn't offer a \"no\" output, but rather a grey \"not found\" image, the software tests the size of it and determines what it is, automatically filtering it.\r\n  - Connects to twitter API and posts the image with a randomly selected message. Uses the stream to wait for the correct response, and when it's seen, the bot congratulates the winner and moves onto the next round.\r\n\r\n##### To be added\r\n- Lots.\r\n\r\n\r\n#### Demo\r\nhttps://twitter.com/hideandgoogle\r\n\r\n\r\n![screenshot](https://i.imgur.com/VB12xxm.png)\r\n\r\n\r\n#### Quick Start\r\n\r\n`$ cd /hide-and-google/`\r\n\r\n`npm i --save twit random-world inquirer image-downloader fs`\r\n\r\nGo into the `hag-bot.js` file and focus at the top.\r\n\r\nThis will need to be configured as per your keys and desired settings.\r\n\r\n\r\n*NOTE*: This will be ported over to a seperate config.json file soon!\r\n\r\n```\r\n// ----- SETTINGS\r\nconst googleStreetAPIKey = 'x';\r\nconst googleStreetSettings = '\u0026fov=100';\r\nconst sizeOf404Image = 9000;\r\nvar T = new Twit({\r\n    consumer_key: 'x',\r\n    consumer_secret: 'x',\r\n    access_token: 'x-x',\r\n    access_token_secret: 'x',\r\n    timeout_ms: 60 * 1000, // optional HTTP request timeout to apply to all requests.\r\n})\r\n```\r\n\r\nThen `node hag-bot.js`.\r\n\r\nReccomended that you run this on a VPS with latest Node.js installed.\r\n\r\nLicensed under [GNU AGPLv3](https://www.gnu.org/licenses/agpl-3.0.en.html)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falectrocute%2Fhide-and-google","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falectrocute%2Fhide-and-google","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falectrocute%2Fhide-and-google/lists"}