Skip to content

AbhishekPednekar84/covid19-kar-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Karnataka COVID19 Counts - Telegram Bot

Build Status

This repository contains the Python (v3.7) code for the Karnataka COVID19 Counts Telegram bot.

Using the bot

  1. Search for the bot in Telegram using either Karnataka COVID 19 Counts or @KarCovid19Bot
  2. Click START to begin conversing with the bot
  3. To retrieve the latest COVID 19 stats for Karnataka, send either /karcovid or /karcorona

Commands

  1. /start - To start interacting with the bot and get a welcome message
  2. /karcovid - Retrieve the state and district-wise stats
  3. /karcorona - Retrieve the state and district-wise stats

Creating a local setup

  1. Clone the current repository - git clone https://github.com/AbhishekPednekar84/covid19-kar-bot
  2. Create a virtual environment - python -m venv venv
  3. Activate the virtual environment - venv\Scripts\activate.bat (Windows), source venv/bin/activate (OSx / Linux)
  4. Install the project dependencies - pip install -r requirements.txt
  5. Create a .env file and add an environment variable called TELEGRAM_TOKEN (refer to .env.example)
  6. Run the code - python bot/server.py or python3 bot/server.py
  7. To run the tests - pytest

Bot1


Bot2

Releases

No releases published

Packages

No packages published