Skip to content

pairhub/twitter-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PairHub Twitter bot

TODO:

  • Follow the community hashtag and retweet tweets to it
  • Welcome new community members summarising their skills and who they'd like to pair with
  • Retweet specific keywords "pair programming", "anyone want to pair with me"
  • Reply to those specific keywords promoting PairHub

Pre-requisites

This bot uses the twit npm package to manipulate tweets and streams and communicate with Twitter API. Please refer documentation to make substantial changes.

Contributing

You can help out by:

  • Solving existing issues.
  • Enhancing the bot adding more functionalities [(see issues)].( enhancement )
  • Pointing out bugs/errors.

For above option(s), please create an issue so it can be addressed. New to GitHub issues? They have a pretty handy guide you can use to familiarize yourself with them.

If you can make a change

What you will need:

  • Your own Twitter account for testing
  • API Keys for Twitter.
    • Get your Twitter API keys here.
  • Fork the repository.
  • Add API keys to .env file, your .env file should look something like this:
CONSUMER_KEY=xxxxxxxxxxxxxxxxxxxxdMhxg
CONSUMER_SECRET=xxxxxxxxxxxxxxxxxxxxkFNNj1H107PFv1mvWwEM6CZH0fjymV
ACCESS_TOKEN=xxxxxxxxx-xxxxxxxxxxxxxxxxxxxxecKpi90bFhdsGG2N7iII
ACCESS_TOKEN_SECRET=xxxxxxxxxxxxxxxxxxxxZAU8wNKAPU8Qz2c0PhOo43cGO
QUERY_STRING=#someTestHashTag
RESULT_TYPE=mixed
LANG=en
TWITTER_USERNAME=YourTestAccountUserName
TWITTER_RETWEET_RATE=120
  • Make your suggested change.
  • Make sure the code style looks similar to the existing code.
  • Create a pull request.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published