A small bot project, responsible for the basic CRUD operations of the library and getting the report via GET request.
Completed โ
- Basic CRUD operations on books via SQLAlchemy
- Flask app, resonsible for saving and downloading book stats
- DatabaseConnector class, responsible for implementing ORM to work with DB
- TelegramBot class, responsible for client interface and commands
- Python 3.11
- Flask 2.3.2
- SQLAlchemy 2.0.1
-
Clone the repository to the local machine
git clone https://github.com/Segfaul/libra_bot.git
-
Go to the repository directory
cd libra_bot
-
Create and activate a virtual environment
python -m venv env source env/bin/activate
-
Set project dependencies
pip install -r requirements.txt
-
Configure telegram api_token via telegram.py
tg_bot = TelegramBot("...")
-
Run the libra bot logic in the background
python __init.py__ &
-
In case of a problem, the program will stop automatically or you can stop execution using
ps aux | grep ".py" kill PID