Skip to content

LennyDennis/COVID19TwitterBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

COVID19 Twitter Bot

COVID19TwitterBot is a twitter bot that gives latest statics on COVID-19 in the world and Kenya. It tweets the updates after every 6 hours.

License: MIT GitHub issues GitHub pull requests

follow on Twitter

Features

Tweets the world and Kenya COVID19 stats after every 6 hours.

Statistics Tweet

Contributing

This bot manipulates tweets 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

  • 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.
  • Fork this repository.
  • Create a config.js file and add in your API keys and details, like so:
module.exports = {
    consumer_key:         'xxxxxxxxxxxxxxxxxxxxxxxxx',
    consumer_secret:      'xxxxxxxxxxxxxxxxxxxxxxxxx',
    access_token:         'xxxxxxxxxxxxxxxxxxxxxxxxx',
    access_token_secret:  'xxxxxxxxxxxxxxxxxxxxxxxxx',
    timeout_ms:           60*1000,  // optional HTTP request timeout to apply to all requests.
    strictSSL:            true,     // optional - requires SSL certificates to be valid.
}

Make the Change

  • Run node index.js to start the bot. 👍
  • Make your suggested change.
  • Test your change.
  • Create a pull request.

License

MIT License

Copyright (c) 2020 - Present LennyDennisMacharia

About

Twitter bot to share stats about COVID19 cases in Kenya

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published