1
0
Fork 0
mirror of https://github.com/EDeev/school_menu.git synced 2026-10-07 20:49:36 +03:00
Школьный Telegram-бот столовой (2021–2022): меню с сайта школы и заказы питания по классам. aiogram 2
Find a file
2026-10-06 22:18:37 +03:00
.github/workflows Docker-образ бота (Python 3.10, базы в томе) и релизы по тегу v* 2026-10-06 22:16:20 +03:00
code Токен, ID бота и технической группы — из окружения 2026-10-02 23:40:56 +00:00
db v. 1.0 2022-05-17 12:00:08 +07:00
docker Docker-образ бота (Python 3.10, базы в томе) и релизы по тегу v* 2026-10-06 22:16:20 +03:00
.dockerignore Docker-образ бота (Python 3.10, базы в томе) и релизы по тегу v* 2026-10-06 22:16:20 +03:00
.gitattributes Переводы строк приведены к LF 2026-10-02 23:38:04 +00:00
Dockerfile Docker-образ бота (Python 3.10, базы в томе) и релизы по тегу v* 2026-10-06 22:16:20 +03:00
README.en.md Docker-образ бота (Python 3.10, базы в томе) и релизы по тегу v* 2026-10-06 22:16:20 +03:00
README.md Docker-образ бота (Python 3.10, базы в томе) и релизы по тегу v* 2026-10-06 22:16:20 +03:00
requirements.txt Зависимости ставятся: Babel 2.9.1 — aiogram 2.25 требует Babel < 2.10 2026-10-06 22:18:37 +03:00

School Menu Bot

Русский · English

CI Release

A school cafeteria Telegram bot: every morning it posts the menu from the school website, takes breakfast, lunch and snack orders by class and compiles a summary for the cafeteria.

Status: school project (2021–2022), completed, archived

Stack: Python 3.10 · aiogram 2 · SQLite · openpyxl (menu from Excel) · pymorphy2

  • Today's and tomorrow's menu (/today, /tomorrow) and a 06:00 broadcast
  • Ordering with buttons, cancelling and changing an order
  • Class registration by code, separate groups for students and the cafeteria
  • Order summary by class with correct Russian word forms

Running

pip install -r requirements.txt
cd code && BOT_TOKEN=token BOT_ID=bot_id TECH_GROUP_ID=group_id python bot.py

Portion weights and calories from Excel are parsed without eval: only numbers and + - * / are allowed.

Docker: docker run -d -e BOT_TOKEN=token -e BOT_ID=bot_id -e TECH_GROUP_ID=group_id -v school-menu-db:/app/db ghcr.io/edeev/school_menu (same as git.deev.su/edeev/school_menu); on first start the databases from the repository are copied into the volume.

License

School project (2021–2022). The code is open for study; there is no separate license.

Author

Egor Deev — GitHub · Telegram · egor@deev.space


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

Made with ❤️ — deev.space