Skip to content

A telegram weather bot that tries to tell if the day is beautiful or not.

Notifications You must be signed in to change notification settings

kahlstrm/paivabot

Repository files navigation

Paivabot - telegram Weather Bot

A simple telegram bot that describes current weather (currently for Otaniemi, Espoo) and predicts the "beautifulness" of the day using previously learnt data.

Development

Currently only works on x86 only because of Prisma binaries (tested on Linux)

For development you need:

  • pipenv
  • Python 3.11 is required in the Pipfile, highly recommended
  • A free API key from OpenWeatherMap
  • A Postgres database (local/remote)
  • A TG bot API key
  1. Install dependencies:

    pipenv install --dev
    
  2. setup environment variables inside .env

  3. generate Prisma binaries:

    pipenv run generate
    
  4. setup database:

    pipenv run db push
    
  5. to start dev environment run:

    pipenv run dev
    

Production

For production you need (or is recommended at least):

  1. Build the image:

    docker build -t paivabot .
    
  2. setup environment variables inside .env

  3. Run the image with .env as the env-file:

    docker run -d --env-file .env paivabot
    

About

A telegram weather bot that tries to tell if the day is beautiful or not.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published