{"id":13659215,"url":"https://github.com/jimkang/hail-ants-bot","last_synced_at":"2025-08-10T22:17:03.761Z","repository":{"id":31924256,"uuid":"35493617","full_name":"jimkang/hail-ants-bot","owner":"jimkang","description":"Posts news about the inexorable threat to humanity this is ants.","archived":false,"fork":false,"pushed_at":"2022-12-06T15:59:16.000Z","size":153,"stargazers_count":5,"open_issues_count":8,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-01T22:21:23.780Z","etag":null,"topics":[],"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/jimkang.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":"2015-05-12T14:39:15.000Z","updated_at":"2023-03-23T13:02:57.000Z","dependencies_parsed_at":"2023-01-14T20:07:07.392Z","dependency_job_id":null,"html_url":"https://github.com/jimkang/hail-ants-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jimkang/hail-ants-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimkang%2Fhail-ants-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimkang%2Fhail-ants-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimkang%2Fhail-ants-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimkang%2Fhail-ants-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jimkang","download_url":"https://codeload.github.com/jimkang/hail-ants-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimkang%2Fhail-ants-bot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269795171,"owners_count":24476962,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-08-02T05:01:06.388Z","updated_at":"2025-08-10T22:17:03.731Z","avatar_url":"https://github.com/jimkang.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"hail-ants-bot\n=============\n\nPosts news about the inexorable threat to humanity that is ants.\n\nInstallation\n------------\n\nClone this repo.\n\nThen, create a `your-behavior.js` file that contains [Twitter API keys](https://gist.github.com/jimkang/34d16247b40097d8cace) and paths to the modules it should use. Example:\n\n    module.exports = {\n      twitter: {\n        consumer_key: 'asdfkljqwerjasdfalpsdfjas',\n        consumer_secret: 'asdfasdjfbkjqwhbefubvskjhfbgasdjfhgaksjdhfgaksdxvc',\n        access_token: '9999999999-zxcvkljhpoiuqwerkjhmnb,mnzxcvasdklfhwer',\n        access_token_secret: 'opoijkljsadfbzxcnvkmokwertlknfgmoskdfgossodrh'\n      },\n      modulePaths: {\n        transformHeadlines: './antify-headlines',\n        rateHeadlines: './rate-headlines',\n        createTopicGetter: './topic-getter'\n      }\n    };\n\n\n`transformHeadlines` should export a function that takes an array of headlines and a callback, and calls the callback with any error and the transformed headlines. (See `antify-headlines` for an example.)\n\n`rateHeadlines` should export a function that takes an array of headlines and a callback, and calls the callback with any error and an array of objects, each with the headline and a `rating` integer. Higher is usually better. (See `rate-headlines` for an example.)\n\n`createTopicGetter` should export a function that takes an `opts` object and returns a function that will pick a topic to retrieve headlines for. The only property of `opts` that is set so far is `seed`, which createTopicGetter can use to seed randomizers. (See `topic-getter` for an example.)\n\nUsage\n-----\n\n    make run\n\nOr:\n\n    BEHAVIOR=\u003cthe relative path to your behavior file\u003e node post-ant-tweet.js\n\nYou can also pass a `--dry` switch to make it just print whatever it would have tweeted without actually tweeting it.\n\nTests\n-----\n\nRun tests with `make test`.\n\nLicense\n-------\n\nThe MIT License (MIT)\n\nCopyright (c) 2015 Jim Kang\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimkang%2Fhail-ants-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjimkang%2Fhail-ants-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimkang%2Fhail-ants-bot/lists"}