Skip to content

ebergard/tl_weather_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather bot

Telegram bot that shows the weather for the entered city using Django service and Yandex API

Build

  1. Create a virtual environment:
python -m venv ./venv

and activate it. For example on Windows OS:

.\venv\Scripts\Activate.ps1
  1. Install requirements
pip install -r requirements.txt
  1. Create .env file with contents shown in .env.example

  2. Go into weather_forecast and apply django migrations:

python .\manage.py migrate

Run services

  1. Launch telegram bot microservice:
python .\weather_bot\tgbot\bot.py
  1. Launch django service from weather_forecast folder:
python .\manage.py runserver

Usage

Go into your bot and start conversation by:

/start

Releases

No releases published

Packages

No packages published

Languages