GithubHelp home page GithubHelp logo

mikeyhodl / coronapandemicbot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from calpt/coronapandemicbot

0.0 1.0 0.0 50 KB

๐Ÿฆ  Yet another Telegram bot tracking the worldwide spread of COVID-19 (Novel Coronavirus)

Home Page: https://t.me/coronapandemicbot

License: BSD 3-Clause "New" or "Revised" License

Python 95.79% Shell 4.21%

coronapandemicbot's Introduction

๐Ÿฆ  Corona Pandemic Bot

@coronapandemicbot is a Telegram bot that tracks the worldwide spread of the Covid-19 disease and worldwide vaccination efforts.

โœจ Features

Commands:

  • /world - Worldwide case statistics.
  • /today - Summary of today's cases.
  • /list - List of countries ordered by number of cases.
  • /subscribe - Subscribe to daily status updates with new case statistics.
  • /unsubscribe - Unsubscribe from daily status updates.
  • /setcountry - Set your country (for /today and daily updates).
  • /[country] - Case statistics for one country. Replace [country] with the country code or country name (e.g. /fr, /france).
  • /graph [country] - Show a graph with a timeline of new cases of the last 30 days in one country. Type /graph world for worldwide cases.
  • /vacc [country] - Show a graph with a timeline of daily administered vaccination doses in one country. Type /vacc world for worldwide vaccinations.
  • /map [country] - Show a case distribution map for one country. Type /map world for world map.
  • /help - Show the help.

You can use this bot in any Telegram chat without adding it by typing @coronapandemicbot [country].

๐Ÿ›  Setup

  1. Clone this repo and install required Python dependencies:
python3 -m pip install -r requirements.txt
  1. Create your own Telegram bot by contacting @BotFather.
  2. Rename the included file config.sample.json to config.json and fill in your personal bot token.
  3. Run the bot:
python3 bot.py

๐Ÿ“Š Data

The worldwide case statistics are provided and regularly updated by worldometers.info. The data for the case timeline plots is provided and updated by Johns Hopkins University. The data for Covid-19 vaccinations is provided and updated by Our World in Data.

All data is accessed via the disease.sh REST API.

The case distribution maps are retrieved from Wikimedia Commons and accessed via the Wikidata Query Service.

coronapandemicbot's People

Contributors

calpt avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.