Giter Club home page Giter Club logo

covidbot's Introduction

Note: Project has been archived and no more maintain read here.

Covid19Bot

Feature-rich bot to get live Covid-19 stats.

CovidBot Screenshots CovidBot Screenshots CovidBot Screenshots

Command Description Status Example
StateName/StateCode State data/ District-wise sorted analysis โœ”๏ธ Punjab,pb
all All India stats/ Top 15 states with most cases โœ”๏ธ all
daily Daily confirmed cases analysis for past 10 days โœ”๏ธ daily
g daily Daily graphical confirmed cases analysis for past 10 days โœ”๏ธ g daily
daily N Daily changes analysis for past N days โœ”๏ธ daily 15
g daily N Daily graphical analysis for past N days โœ”๏ธ g daily 15
daily active Daily active cases analysis for past 10 days โœ”๏ธ daily active
g daily active Daily active cases graphical analysis for past 10 days โœ”๏ธ g daily active
daily active N Daily active cases analysis for past N days โœ”๏ธ daily active 15
g daily active N Daily active cases graphical analysis for past N days โœ”๏ธ g daily active 15
daily rec Daily recovered cases analysis for past 10 days โœ”๏ธ daily rec
g daily rec Daily recovered cases graphical analysis for past 10 days โœ”๏ธ g daily rec
daily rec N Daily recovered cases analysis for past N days โœ”๏ธ daily rec 15
g daily rec N Daily recovered cases graphical analysis for past N days โœ”๏ธ g daily rec 15
daily dec Daily deceased cases analysis for past 10 days โœ”๏ธ daily dec
g daily dec Daily deceased cases graphical analysis for past 10 days โœ”๏ธ g daily dec
daily dec N Daily deceased cases analysis for past N days โœ”๏ธ daily dec 15
g daily dec N Daily deceased cases graphical analysis for past N days โœ”๏ธ g daily dec 15
graph Daily cases graphical summary for past 10 days โœ”๏ธ graph
graph N Daily cases graphical summary for past N days โœ”๏ธ graph 15
test State Test centers for Corona in the given state โœ”๏ธ test punjab
new All the states with sorted new cases โœ”๏ธ new
new State All the districts with sorted new cases โœ”๏ธ new punjab

Features:

  • No hectic menus. Just send the command and get the stats instantly.
  • District-wise stats are also sorted to show critical areas first.
  • Case insensitive. Pb, pb, pB, PuNJAb all means Punjab.
  • Indicate in brackets how many cases are new.
  • Supports State Codes. Send JK instead of Jammu and Kashmir.
  • Graphs support for better visualization (by @baljinderxd)

covidbot's People

Contributors

baljinderxd avatar dependabot[bot] avatar gaurav-kay avatar gaushikmr avatar rahgurung avatar rajkumaar23 avatar vj-abishek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

covidbot's Issues

add `graph` command

This command will be a summary graph for overall stats. Create a line chart with four lines:
red - confirmed cases
blue - active cases
green - recoveries
grey - deaths

`test tn` throws a error

Unhandled rejection Error: ETELEGRAM: 400 Bad Request: message is too long
    at request.then.resp (/home/gurrrung/fun/CovidBot/node_modules/node-telegram-bot-api/src/telegram.js:283:15)
    at tryCatcher (/home/gurrrung/fun/CovidBot/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/home/gurrrung/fun/CovidBot/node_modules/bluebird/js/release/promise.js:547:31)
    at Promise._settlePromise (/home/gurrrung/fun/CovidBot/node_modules/bluebird/js/release/promise.js:604:18)

`daily rec N` command

Get the daily new recovered cases stats for past 10 days by default or for N days.

support `_` in the commands

Before processing the command replace all _ with space just to support Telegram interface better as we can show all commands in the welcome menu.

Example:
daily_50 should be same as daily 50

refactor to make eslint test pass without disabling them

  1. (fixed by @baljinderxd )
    // eslint-disable-next-line guard-for-in
  2. (fixed by @baljinderxd )
    // eslint-disable-next-line max-len
  3. /* eslint-disable no-restricted-syntax */
  4. // eslint-disable-next-line guard-for-in

Steps:

  1. Remove the commented line, refactor the code to do the same thing but make the eslint test pass.
  2. Make PR.

Make different PR for each point

can we add graphs?

I don't know if we really need this but it would be awesome to have them.

Hosting

Sorry, this is not issue but I have only this means to connect with you. Your bot is working absolutely super and thanks a lot. May I know where is this project running on server like which server?

indian version of comma instead of foreign

Can we have 1,00,000 instead of 100,000, 10,00,000 instead of 1,000,000.

Hint: for first three number from right, add a comma after third, after that add a comma after every two words.

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.