{"id":21027102,"url":"https://github.com/hugomd/fake-hugo","last_synced_at":"2025-03-13T18:44:09.295Z","repository":{"id":146802130,"uuid":"113711542","full_name":"hugomd/fake-hugo","owner":"hugomd","description":"Load my tweets into Redis, create a Markov chain, and generate sentences 🤖","archived":false,"fork":false,"pushed_at":"2017-12-13T22:23:11.000Z","size":11,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-20T14:37:43.650Z","etag":null,"topics":["bot","markov","twitter"],"latest_commit_sha":null,"homepage":null,"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/hugomd.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":"2017-12-10T00:31:38.000Z","updated_at":"2018-09-25T02:31:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"5d918cf4-f71b-40d5-af2d-32b90d0f20b4","html_url":"https://github.com/hugomd/fake-hugo","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/hugomd%2Ffake-hugo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugomd%2Ffake-hugo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugomd%2Ffake-hugo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugomd%2Ffake-hugo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hugomd","download_url":"https://codeload.github.com/hugomd/fake-hugo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243464297,"owners_count":20295275,"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","markov","twitter"],"created_at":"2024-11-19T11:47:51.710Z","updated_at":"2025-03-13T18:44:09.224Z","avatar_url":"https://github.com/hugomd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fake-hugo 🤖\n\nThe code for [@notrealhugo](https://twitter.com/notrealhugo).\n\nUses my ([@hugojmd](https://twitter.com/hugojmd)) tweets as input into Redis, creating a key-value relationship as follows with two words as the key and one word as the value.\n\nFor example, the sentence `The quick brown fox jumps over the lazy dog` gets ingested as:\n```\nThe quick   -\u003e brown\nquick brown -\u003e fox\nbrown fox   -\u003e jumps\nfox jumps   -\u003e over\njumps over  -\u003e the\nover the    -\u003e lazy\nthe lazy    -\u003e dog\n```\n\n## Install\n```javascript\nnpm i\n```\n\n## Usage\n1. Set your environment variables:\n    1. Twitter (create an app [here](https://apps.twitter.com/)):\n        1. `CONSUMER_KEY`\n        2. `CONSUMER_SECRET`\n        3. `ACCESS_TOKEN`\n        4. `ACCESS_TOKEN_SECRET`\n    2. Redis: `REDIS_URL`\n    3. The interval you want your bot to tweet at, `INTERVAL` (in minutes)\n2. Download [your Twitter archive](https://help.twitter.com/en/managing-your-account/how-to-download-your-twitter-archive).\n3. Move it to `./tweets.csv`.\n4. Run `npm start` will ingest your tweets into Redis, and start the bot. The first tweet is after `INTERVAL` minutes.\n\n## To do\n* [ ] Stream tweets from Twitter, via username, and ingest them into Redis.\n* [ ] Weight the likelihood of a value being chosen by how frequently it is used.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugomd%2Ffake-hugo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhugomd%2Ffake-hugo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugomd%2Ffake-hugo/lists"}