A simple discord bot/command line application that can query data about confirmed, death and recovered cases regarding Covid-19 and make plots with that data.
- Using a Discord bot:
Download the repository and add a
.env
file in root containing your bot token and your preferred prefix (I used.
as a prefix in the following examples). - Without a Discord bot:
Run the code through your console by running
npm run cv [arguments]
in the root directory.
.cv [modifier] [country] [option]
-
modifier
- c (confirmed cases)
- r (recovered)
- d (deaths).
Inputting a modifier is optional and in the case of it's absence, confirmed cases are selected by default.
-
country
All countries with recorded cases are supported. You have the option of typingall
which will return you data for all countries combined as well asother
which does the same thing minus China. -
option (optional)
- pie
Prints a pie chart (no need for modifier). Example usage:.cv us pie
- change
Returns a chart showing the rate of change (modifier applicable). Example usage:.cv d italy change
- compare
[country 2]
Plots both countries on the same chart (modifier applicable). Example usage:.cv r greece compare romania
. Note that you can combinechange
andcompare
like so:.cv spain compare italy change
. - log
Plots a logarithmic graph instead of a linear one. Can be combined withcompare
. - top
Plots a bar graph with the top 10 countries in terms of c/r/d cases. By default it plots the top 10.
Extra arguments:- [number of countries]: changes the amount of countries displayed
- m: Sorts countries by mortality rate
- r: Shows countries in reverse order
- combined
Plots a line chart with recovered, deaths and active cases. If you includec
,' + 'confirmed cases are included in the graph as well.
- pie
You can always use .help
and .help [command]
for a list of commands + usage.
Please open an issue for support.
Please contribute using Github Flow. Create a branch, add commits, and open a pull request.