Skip to content

gorlix/AuleLiberePoliMi

 
 

Repository files navigation

Aule Libere PoliMi Bot

Start Bot Python Docker License

A powerful Telegram bot designed to help Politecnico di Milano students find free classrooms for studying. Since the official PoliMi website no longer allows easy searching for free spaces, this bot fills the gap by scraping real-time data and filtering it based on your needs.


Get Started

Ready to find a classroom? Start chatting with the bot now!

🤖 Start AuleBot


Features

  • Smart Search: Find free classrooms by Campus, Day, and Time slot.
  • Power Plugs 🔌: Instantly see which classrooms have power outlets available.
  • Customizable Interface: Toggle between Emoji Mode (compact) and Classic Text Mode via settings.
  • High Performance: Implements Intelligent Caching (1 hour TTL) to ensure instant responses for repeated queries.
  • Granular Opening Hours: Automatically respects specific building schedules
  • Multi-language: Fully localized in Italian 🇮🇹 and English 🇬🇧.
  • Docker Ready: Zero-config deployment with Docker and Docker Compose.
  • User Friendly: Interactive keyboards and "Quick Search" (Now) button.

Deployment

Option A: Docker (Recommended)

The easiest way to run the bot is using Docker. You don't need to install Python or dependencies manually.

1. Run with Docker CLI

docker run -d \
  --name aulebot \
  -e TOKEN="YOUR_TELEGRAM_BOT_TOKEN" \
  --restart unless-stopped \
  ghcr.io/gorlix/auleliberepolimi:latest

2. Run with Docker Compose

The repository already includes a docker-compose.yml file. Simply edit docker-compose.yml to set your TOKEN (or use an .env file), and run:

docker-compose up -d

Option B: Manual Installation

If you prefer running it directly on your machine:

  1. Clone the repository:

    git clone https://github.com/gorlix/AuleLiberePoliMi.git
    cd AuleLiberePoliMi
  2. Install Dependencies:

    pip install -r requirements.txt
  3. Configure Environment: Create a .env file in the root directory:

    TOKEN=your_telegram_bot_token
  4. Run the Bot:

    python3 bot.py

Credits


License

This project is licensed under the GPL-3.0 License - see the LICENSE file for details.

About

Telegram bot that search for free classrooms at PoliMi!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 99.2%
  • Other 0.8%