Skip to content

JayP09/100DaysOfWeb3-twitter-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#100DaysOfWeb3 Twitter Bot


Forks Stars Stars discord.py LinkedIn


Description

Twitter bot for #100DaysOfWeb3


Features

Retweets and likes tweets


Libraries Used

  • Twit :

    Twitter API Client for node


Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

This bot manipulates 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
  • Adding more functionalities to the bot (see issues)
  • Pointing out bugs/errors

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.

Setup

  1. Fork the Project
  2. 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.
  3. Clone your github repo using git clone your_repo.
  4. Run npm install to install all ependencies.
  5. 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
QUERY_STRING=#someTestHashtag
TWITTER_USERNAME=YourTestTwitterAccountName
  1. Change any hashtags to #someTestHashtag to avoid spamming the community hashtag.
  2. Run node index.js to check all keys are available before you start. 👍
  3. Make your suggested change.
  4. Create your Feature Branch git checkout -b feature/AmazingFeature
  5. Commit your Changes git commit -m 'Add some AmazingFeature'
  6. Push to the Branch git push origin feature/AmazingFeature
  7. Open a Pull Request

Contributors

people who already contributed to 100DaysOfWeb3 Bot


Show some ❤️ by starring this repo🌟.