{"id":18829636,"url":"https://github.com/freecodecamp/100daysofcode-twitter-bot","last_synced_at":"2025-04-05T11:13:05.847Z","repository":{"id":40685883,"uuid":"61523197","full_name":"freeCodeCamp/100DaysOfCode-twitter-bot","owner":"freeCodeCamp","description":"Twitter bot for #100DaysOfCode","archived":false,"fork":false,"pushed_at":"2024-01-27T04:32:55.000Z","size":964,"stargazers_count":285,"open_issues_count":13,"forks_count":110,"subscribers_count":26,"default_branch":"main","last_synced_at":"2025-03-29T10:11:24.031Z","etag":null,"topics":["100daysofcode","nodejs","twitter-api","twitter-bot"],"latest_commit_sha":null,"homepage":"https://twitter.com/_100DaysOfCode","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/freeCodeCamp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","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},"funding":{"github":"freecodecamp","patreon":"freecodecamp","custom":["www.freecodecamp.org/donate"]}},"created_at":"2016-06-20T06:46:18.000Z","updated_at":"2025-02-27T07:38:28.000Z","dependencies_parsed_at":"2025-03-29T10:10:57.375Z","dependency_job_id":"55c44c28-64d0-483c-887b-9a5e9f2d89f3","html_url":"https://github.com/freeCodeCamp/100DaysOfCode-twitter-bot","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freeCodeCamp%2F100DaysOfCode-twitter-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freeCodeCamp%2F100DaysOfCode-twitter-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freeCodeCamp%2F100DaysOfCode-twitter-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freeCodeCamp%2F100DaysOfCode-twitter-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/freeCodeCamp","download_url":"https://codeload.github.com/freeCodeCamp/100DaysOfCode-twitter-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247325696,"owners_count":20920714,"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":["100daysofcode","nodejs","twitter-api","twitter-bot"],"created_at":"2024-11-08T01:45:43.277Z","updated_at":"2025-04-05T11:13:05.841Z","avatar_url":"https://github.com/freeCodeCamp.png","language":"JavaScript","readme":"# [100DaysOfCode Twitter Bot](https://twitter.com/hashtag/100DaysOfCode?src=hash)\n\n\u003cstrong\u003eHelping developers who participate in\n[#100DaysOfCode](https://twitter.com/hashtag/100DaysOfCode?src=hash)\nto engage on Twitter.\u003c/strong\u003e\n\n[![License (3-Clause BSD)](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg?style=flat-square)](http://opensource.org/licenses/BSD-3-Clause)\n[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n[![Connect with us on Slack](https://img.shields.io/badge/-Slack%20Channel-3b99ef.svg?colorA=02c775\u0026style=flat\u0026logo=slack)](https://100xcode.slack.com/)\n[![Discord](https://img.shields.io/discord/308323056592486420.svg?logo=discord)](https://discord.gg/HSJgHMW)\n[![GitHub issues](https://img.shields.io/github/issues/freeCodeCamp/100DaysOfCode-twitter-bot.svg?\u0026colorB=ff0000)](https://github.com/freeCodeCamp/100DaysOfCode-twitter-bot/issues)\n[![GitHub pull requests](https://img.shields.io/github/issues-pr/freeCodeCamp/100DaysOfCode-twitter-bot.svg?colorB=1FBF14)](https://github.com/freeCodeCamp/100DaysOfCode-twitter-bot/pulls)\n\n\u003cp\u003e\n  \u003ca href=\"https://twitter.com/intent/follow?screen_name=_100DaysOfCode\"\u003e\n    \u003cimg src=\"https://img.shields.io/twitter/follow/_100DaysOfCode.svg?style=social\"\n      alt=\"follow on Twitter\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Features\n\n### Retweets and likes tweets\n\n![Screenshot1](http://i.imgur.com/V35iX70.png)\n\n### Sends a thank-you reply to new followers\n\n![Screenshot2](http://i.imgur.com/0LAvqUd.png)\n\n### Congratulates users on starting/finishing [#100DaysOfCode](https://twitter.com/hashtag/100DaysOfCode?src=hash)\n\n![Imgur](http://i.imgur.com/d8pu9LO.png)\n\n### Tweets back encouragement if a [#100DaysOfCode](https://twitter.com/hashtag/100DaysOfCode?src=hash) tweet has negative sentiment\n\n![Imgur](http://i.imgur.com/GQLoYhG.png)\n\n### Tracks user interaction via [`LevelDB`](https://github.com/Level/level) to give users daily encouragement\n\n### Uses a cron-like [job scheduler](https://github.com/node-schedule/node-schedule) to tweet 'Project of the Day'\n\n### Blacklist Spammers who abuse [#100DaysOfCode]\n\n### freeCodeCamp challenges and Help Channels (such as Slack, Discord, etc.) are merged in an API to constantly tweet links for new joiners/followers\n\n---\n\n## Contributing\n\nThis bot manipulates tweets and streams by connecting to the\n[Twitter API](https://developer.twitter.com/en/docs) via the `twit`\nnpm package. Please refer to the `twit`\n[documentation](https://github.com/ttezel/twit) to make substantial\nchanges.\n\nYou can help by:\n\n* Solving existing\n  [issues](https://github.com/freeCodeCamp/100DaysOfCode-twitter-bot/issues?q=is%3Aopen+is%3Aissue)\n* Adding more functionalities to the bot\n  ([see issues](https://github.com/freeCodeCamp/100DaysOfCode-twitter-bot/issues?q=is%3Aopen+is%3Aissue+label%3Aenhancement))\n* Pointing out bugs/errors\n\nFor any of the above, please create an issue so that it can be\naddressed. New to GitHub issues? You can familiarize yourself with\nthem using GitHub's\n[guide](https://help.github.com/articles/creating-a-pull-request/).\n\n#### Setup\n\n* You will need your _own_ Twitter account for testing, since the bot\n  tweets from this account. Generate your Twitter API keys by\n  [creating a new app](https://apps.twitter.com/app/new).\n* Fork this repository.\n* Create an `.env` file and add in your API keys and Twitter handle,\n  like so:\n\n```\nTWITTER_CONSUMER_KEY=xxxxxxxxxxxxxxxxxxxxdMhxg\nTWITTER_CONSUMER_SECRET=xxxxxxxxxxxxxxxxxxxxkFNNj1H107PFv1mvWwEM6CZH0fjymV\nTWITTER_ACCESS_TOKEN=xxxxxxxxx-xxxxxxxxxxxxxxxxxxxxecKpi90bFhdsGG2N7iII\nTWITTER_ACCESS_TOKEN_SECRET=xxxxxxxxxxxxxxxxxxxxZAU8wNKAPU8Qz2c0PhOo43cGO\nQUERY_STRING=#someTestHashtag\nTWITTER_USERNAME=YourTestTwitterAccountName\n```\n\n#### Make the Change\n\n* Change any hashtags to\n  [`#someTestHashtag`](https://twitter.com/search?q=someTestHashTag\u0026src=typd)\n  to avoid spamming the community hashtag.\n* Run `npm/yarn test` to check all keys are available before you\n  start. :+1:\n* Make your suggested change.\n* Ensure code style follows existing code (run `npm run format` to\n  apply preferred formatting).\n* Create a pull request.\n\n---\n\n### License\n\nBSD 3-Clause License\n\nCopyright (c) 2018 - Present, freeCodeCamp. All rights reserved.\n","funding_links":["https://github.com/sponsors/freecodecamp","https://patreon.com/freecodecamp","www.freecodecamp.org/donate"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreecodecamp%2F100daysofcode-twitter-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreecodecamp%2F100daysofcode-twitter-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreecodecamp%2F100daysofcode-twitter-bot/lists"}