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.
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.
- 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.
}
- Run
node index.js
to start the bot. 👍 - Make your suggested change.
- Test your change.
- Create a pull request.
MIT License
Copyright (c) 2020 - Present LennyDennisMacharia