Bot for showing information about the weather in cities of Ukraine and Europe
Demo
Click here to open telegram WeatherGubchikBot
Project modules (requirements.txt)
Features
-
Emoji
I use RegExp for getting emoji by weather description -
Daily mailing
You can sign up for the mailing to receive daily weather information in the city of your choice (you can turn it off at any time) -
Storing in database
If you sign up for the newsletter, information will store in PostgreSQL database -
Using fuzzy comparison
You can type the title of the city and bot try to find it with using python fuzzywuzyy module for fuzzy comparison
Three languages (screenshots)
Environment Variables
To run this project, you will need to add the following environment variables to your .env file
DB_URI
TIMEZONE
BOT_TOKEN
MY_TELEGRAM_CHAT_ID
Run Locally
Clone the project
git clone https://github.com/Gubchik123/WeatherGubchikBot.git
Go to the project directory
cd WeatherGubchikBot
Install dependencies
pip install -r requirements.txt
Run the bot
python bot/bot.py
Note: Don't forget about environment variables