Skip to content

itisnotyourenv/questions-bot

Repository files navigation

Question bot

The bot allows people to send anonymous questions to other people.

Technologies

  • Python 3.11
  • Aiogram - asynchronous framework for Telegram Bot API
  • arq - asynchronous task queue
  • SQLAlchemy - ORM with async support
  • Alembic - migrations
  • Pillow - image processing
  • PostgreSQL - main database
  • Redis - save user state
  • Docker - containerization
  • Docker-compose - run all services

Installation

  1. Clone repository
git clone https://github.com/itisnotyourenv/questions-bot
  1. Rename .env.dist to .env and fill in the variables
  2. Run docker-compose
docker-compose up -d --build
  1. Run migrations
docker exec q_bot alembic upgrade head

Where q_bot is the name of the container with the bot