Skip to content
This repository was archived by the owner on Sep 11, 2022. It is now read-only.

rixinsc/CoronaBot

Repository files navigation

CoronaBot - A bot module for tracking the Coronavirus epidermic

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.

Usage

  1. Make sure you've installed a compatible Python version (>3.4, Python 3.7 recommended).
  2. Clone or download this repository to your computer, then make it the current working directory (cd CoronaBot).
  3. Edit token.txt and replace the content with your bot's token, tutorial here.
  4. Run bot.py. (python3 bot.py)
  5. Invite your bot to your server and have fun! Use -help to get started. (- is the default prefix, all command invocation must be preceded with the configured prefix)

Feature Highlight

  • 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.

Available data:

  1. Confirmed cases count
  2. Deaths count
  3. Recovered patients count
  4. Active patients count
  5. Incident rate
  6. Country ranking by confirmed cases

Primary File Structure

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.

About

A Discord bot module for tracking the Coronavirus epidermic

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages