Giter Club home page Giter Club logo

covid19nowbot's Introduction

@COVID19NOWBot - Telegram bot to fetch numbers of COVID-19 cases. Available in πŸ‡ΊπŸ‡Έ, πŸ‡§πŸ‡· and πŸ‡«πŸ‡·.

Telegram bot Heroku App Status License: GPL v3 GitHub code size in bytes

β„Ή About

Telegram bot that consumes APIs and makes information available through a Telegram bot. It runs on JavaScript (Node.js) and uses MongoDB. You can try it here (available in en-US, pt-BR and fr-FR).

πŸ“– Examples (in en-US)

  • Getting stats for the world:

    Telegram bot

  • Getting stats for countries:

    Telegram bot Telegram bot

  • Changing locale (to en-US):

    Telegram bot

You can learn more with the /help command.

🏑 Running locally

1- First, clone the repository and enter the folder with your terminal. Then, install all dependencies with

npm install or yarn

Some of the bot's functionality depends on being connected to a MongoDB database. If you wish to use your own database, just set the MONGODB_URI environment variable in the .env.example file to your URI connection string and rename the .env.example file to .env or, alternatively, set MONGODB_URI as an environment variable of the system hosting the bot.

You'll be doing the same thing for the BOT_TOKEN environment variable. You can get your token/key with BotFather, the official way to create bots on Telegram.

With everything set, you can start the bot with (nodemon is optional for hot reloading):

nodemon index.js


Data sources: JHU CSSE, Worldometer and covid19-api on NPM.

covid19nowbot's People

Contributors

atilioa avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

covid19nowbot's Issues

Cooperation

A day or two ago I discovered your bot. Nice work! It looks a bit like mine https://t.me/corona_cases_bot which is, hmm, interesting :)

So yeah, would you be interested in some sort of cooperation? I see yours is in JavaScript while mine is in Clojure but maybe we can at least exchange some ideas, share experiences etc. What do you think?

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.