It is no longer functioning and I'm not currently planning to update it as the world is moving away from the pandemic, unless there's renewed intrests somehow.
CoronaBot is a Discord bot module (or cog in discord.py jargon) made specifically for tracking the Coronavirus epidermic.
It fetches and parses data from the JHU CSSE database then present it in a nice way.
- Make sure you've installed a compatible Python version (>3.4, Python 3.7 recommended).
- Clone or download this repository to your computer, then make it the current working directory (
cd CoronaBot). - Edit
token.txtand replace the content with your bot's token, tutorial here. - Run
bot.py. (python3 bot.py) - Invite your bot to your server and have fun! Use
-helpto get started. (-is the default prefix, all command invocation must be preceded with the configured prefix)
- Get a summary of the current situation of COVID-19 (
corona) - Get country ranking by confirmed cases count (
corona rank) - Check the number of infections in a country/province/state (
corona status US) - Subscribe to the update of the number of related cases in a particular region, updated every 20 minutes (
corona subscribe US)
PS: You can get extended help for a command by prepending help in front of the command you would like to know more about. Example: help corona rank will show more information about corona rank command.
- Confirmed cases count
- Deaths count
- Recovered patients count
- Active patients count
- Incident rate
- Country ranking by confirmed cases
CoronaBot
|- bot.py [The main executable for the bot, also the entry for the bot]
|- corona.py [The primary module being used here, contains the source of all
| related commands about coronavirus]
|- classes.py [All self-defined/inherited classes that're used to power the bot]
|- exceptions.py [All custom-defined exceptions classes]
|- helpers.py [Helper functions that're used throughout the bot]
|- db.json [A local database file that's automatically generated after
| the bot starts]
|_
This project is MIT licensed, see the file LICENSE for more info.