1
0
Fork 0
mirror of https://github.com/EDeev/mospoly-helper.git synced 2026-10-07 20:49:32 +03:00
Учебный командный проект (Московский Политех): Telegram-бот с видео-маршрутами до аудиторий корпусов. aiogram 3 + MoviePy https://t.me/MosPoly_Helperbot
Find a file
2026-10-06 22:19:27 +03:00
.github/workflows Docker-образ бота в GHCR по тегу v*, готовый образ в README 2026-10-06 22:19:27 +03:00
docs release docs 2025-06-27 13:50:23 +03:00
reports README.md 2025-06-28 10:21:21 +03:00
site replacing the README 2025-07-01 02:03:39 +03:00
src Бот не падает на неожиданном вводе 2026-10-05 18:00:17 +00:00
task Initial commit 2025-02-01 00:00:00 +03:00
.dockerignore containerization 2026-01-05 19:10:03 +03:00
.env.example containerization 2026-01-05 19:10:03 +03:00
.gitignore containerization 2026-01-05 19:10:03 +03:00
docker-compose.yml containerization 2026-01-05 19:10:03 +03:00
DOCKER.md containerization 2026-01-05 19:10:03 +03:00
Dockerfile containerization 2026-01-05 19:10:03 +03:00
practice_README.md replacing the README 2025-07-01 01:41:40 +03:00
QUICKSTART.md containerization 2026-01-05 19:10:03 +03:00
README.en.md Docker-образ бота в GHCR по тегу v*, готовый образ в README 2026-10-06 22:19:27 +03:00
README.md Docker-образ бота в GHCR по тегу v*, готовый образ в README 2026-10-06 22:19:27 +03:00
requirements.txt Зависимости: aiogram 3.13 и moviepy 2.1 — версии, с которыми код работает 2026-10-05 18:00:16 +00:00

MosPolyHelper

Русский · English

CI Release

A Telegram bot that sends a video route to a classroom in Moscow Polytechnic University buildings: pick a campus, type the room number and get a video note with the way from the campus gate or from the building entrance.

Status: team coursework (project practice, Moscow Polytech, group 241-327, 2025), completed · bot @MosPoly_Helperbot

Stack: Python 3.10 · aiogram 3 · MoviePy 2 · FFmpeg · Docker

Features

  • Five campuses: Bolshaya Semyonovskaya, Pavla Korchagina, Pryanishnikova, Mikhalkovskaya, Avtozavodskaya
  • A route from the campus gate or the building entrance: the clip is assembled from "building → floor → room" fragments, sped up 2× and encoded for Telegram (H.264, 1500k)
  • Finished clips are cached and repeat requests are instant; combine.py pre-builds the cache
  • Room number validation with hints when the format or campus doesn't match

Videos were filmed for the Pryanishnikova buildings (76 rooms) and partly for Avtozavodskaya; for other campuses the bot replies that the route isn't available yet and suggests writing by email.

Running

git clone https://github.com/EDeev/mospoly-helper.git && cd mospoly-helper
cp .env.example .env      # BOT_TOKEN from @BotFather
docker compose up -d

Prebuilt image (videos inside, the route cache is built on the fly):

docker run -d -e BOT_TOKEN=token -v mospoly-cache:/app/src/data/cache -v mospoly-users:/app/src/data/users ghcr.io/edeev/mospoly-helper

(same as git.deev.su/edeev/mospoly-helper).

Without Docker: Python 3.10+, FFmpeg, pip install -r requirements.txt, then cd src/code && BOT_TOKEN=… python bot.py. More in QUICKSTART.md and DOCKER.md (in Russian).

Note

The repository holds about 220 video clips (sources and cache), so it is over 500 MB.

License

Coursework (project practice, Moscow Polytechnic University, 2025). The code is open for study; there is no separate license.

Authors


⭐ If you find this project useful, give it a star on GitHub!

Made with ❤️ by Moscow Polytech students, group 241-327