Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/antoniosbarotsis/coronabot
My attempt at data mining and analysis on Covid-19
https://github.com/antoniosbarotsis/coronabot
chartjs coronavirus covid-19 data-analysis discord-bot graph hacktoberfest
Last synced: about 2 months ago
JSON representation
My attempt at data mining and analysis on Covid-19
- Host: GitHub
- URL: https://github.com/antoniosbarotsis/coronabot
- Owner: AntoniosBarotsis
- License: mit
- Created: 2020-03-08T20:23:17.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T17:35:02.000Z (almost 2 years ago)
- Last Synced: 2024-10-16T05:17:20.802Z (2 months ago)
- Topics: chartjs, coronavirus, covid-19, data-analysis, discord-bot, graph, hacktoberfest
- Language: JavaScript
- Homepage:
- Size: 2.53 MB
- Stars: 9
- Watchers: 3
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Covid-19 Discord Bot
[![Build Status](https://travis-ci.org/AntoniosBarotsis/coronaBot.svg?branch=master)](https://travis-ci.org/AntoniosBarotsis/coronaBot)
![GitHub repo size](https://img.shields.io/github/repo-size/AntoniosBarotsis/coronaBot?color=light%20green)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.## Table of Contents
- [Installation](#installation)
- [Usage](#usage)
- [Support](#support)
- [Contributing](#contributing)## Installation
- 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.## Usage
``.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 typing ``all`` which
will return you data for all countries combined as well as ``other`` 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 combine ``change`` and ``compare`` like so: ``.cv spain compare italy change``.
- log\
Plots a logarithmic graph instead of a linear one. Can be combined with ``compare``.
- 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 include `` c``,' +
'confirmed cases are included in the graph as well.
You can always use ``.help`` and ``.help [command]`` for a list of commands + usage.
## Support
Please [open an issue](https://github.com/AntoniosBarotsis/coronaBot/issues/new) for support.## Contributing
Please contribute using [Github Flow](https://guides.github.com/introduction/flow/).
Create a branch, add commits, and [open a pull request](https://github.com/AntoniosBarotsis/coronaBot/compare).## Showcase
- ```.cv all```\
![bruh](/images/3.jpeg)- ```.cv other change```\
![bruh](/images/4.jpeg)- ```.cv us pie```\
![bruh](/images/2.jpeg)- ```.cv d greece compare romania```\
![bruh](/images/1.jpeg)- ```.cv spain compare italy change```\
![bruh](/images/5.jpeg)- ```.cv russia compare albania log```\
![bruh](/images/6.jpeg)- ```.cv top 20```\
![bruh](/images/7.jpeg)- ```.cv spain combined c```
![bruh](/images/8.jpeg)