Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

amandeepmittal/projectEuler100-twitter-bot

I help developers who participate in #ProjectEuler100 to engage on Twitter.

License (3-Clause BSD) styled with prettier

follow on Twitter

Logo

API

  • It encourages developers who participate in #ProjectEuler100 challenge hosted by @freeCodeCamp
  • The API consists of "favorite" and "retweet" a tweet at an interval of every 30 minutes

Contributing

This bot creates tweets and streams by connecting to the Twitter API via the twit npm package. Please refer to the twit documentation to make substantial changes.

You can help by:

  • Solving existing issues

For any of the above, please create an issue so that it can be addressed. New to GitHub issues? You can familiarize yourself with them using GitHub's guide.

How to setup the bot?

  • You will need your own Twitter account for testing, since the bot tweets from this account. Generate your Twitter API keys by creating a new app.
  • Create an .env file and add in your API keys and Twitter handle, like so:
TWITTER_CONSUMER_KEY=xxxxxxxxxxxxxxxxxxxxdMhxg
TWITTER_CONSUMER_SECRET=xxxxxxxxxxxxxxxxxxxxkFNNj1H107PFv1mvWwEM6CZH0fjymV
TWITTER_ACCESS_TOKEN=xxxxxxxxx-xxxxxxxxxxxxxxxxxxxxecKpi90bFhdsGG2N7iII
TWITTER_ACCESS_TOKEN_SECRET=xxxxxxxxxxxxxxxxxxxxZAU8wNKAPU8Qz2c0PhOo43cGO

License

BSD 3-Clause License

Copyright (c) 2020, freeCodeCamp. All rights reserved.