AtilioA / COVID19NowBot

🦠 @COVID19NowBot - Telegram bot to fetch numbers of COVID-19 cases.

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@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.

About

🦠 @COVID19NowBot - Telegram bot to fetch numbers of COVID-19 cases.

https://t.me/COVID19NowBot

License:GNU General Public License v3.0


Languages

Language:JavaScript 99.0%Language:Shell 1.0%