GithubHelp home page GithubHelp logo

karambir / covid19-assist Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 118 KB

Cowin assist with telegram bot. Extended from https://github.com/avinassh/cowin-assist

Home Page: https://hub.docker.com/r/karambir/covid19-assist

License: MIT License

Dockerfile 0.65% Python 98.82% Shell 0.54%
docker docker-compose covid19 covid19-india made-in-india

covid19-assist's Introduction

Covid19 Vaccine India Assist Telegram Bot

Extended from avinassh/cowin-assist. Go check it out.

This is a simple Telegram bot to

  • Check slots availability
  • Get an alert when slots become available

Note

On 6th May 2021, CoWin API added caching and rate limits. The public API data would be cached upto 30 minutes, so the alerts wouldn't be so instant in busy areas, which reduced this bot's functionality to being a nice UI for public CoWin site in Telegram.

Installation and Deployment

Following section helps you host the bot on your own servers.

Prerequisites

You need a bot account on Telegram. Use @BotFather to create one. If you are new to Telegram Bots, you may start from here Bots: An introduction for developers.

System Requirements

  • Docker
  • Docker Compose

Running

Get the code and update your data in .env:

git clone https://github.com/karambir/covid19-assist.git
cd covid19-assist
cp example.env .env

Then run it using docker

docker push karambir/covid19-assist:latest

docker-compose up

Running without Docker

Install the project requirements from requirements.txt:

$ pip install -r requirements.txt

Rename sample_secrets.py to secrets.py and fill it with appropriate details. Then you can run:

$ python main.py

2021-05-06 09:59:29,238 - __main__ - INFO - starting a bg worker - frequent_background_worker
2021-05-06 09:59:29,239 - __main__ - INFO - starting a bg worker - periodic_background_worker
2021-05-06 09:59:29,239 - apscheduler.scheduler - INFO - Scheduler started

Development

Open an issue for any discussions and feel free to send a PR.

Disclaimer

Not affiliated with Ministry of Health and Family Welfare OR Government of India in any capacity.

License

Released under MIT License. Check LICENSE file more info.

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.