A simple Discord bot to fetch your school schedule from Untis.
- Clone the repository:
git clone https://github.com/your-username/UntisIntegration.git- Create a virtual environment (recommended):
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Configure environment variables:
Create a .env file in the project root with the following:
UNTIS_SERVER=<your_untis_server_address>
UNTIS_USERNAME=<your_untis_username>
UNTIS_PASSWORD=<your_untis_password>
UNTIS_SCHOOL=<your_untis_school_name>
DC_TOKEN=<your_discord_bot_token>
UNTIS_KLASSE=<your_untis_class_name> # Optional: For specific class schedules- Run the bot:
python main.py- In Discord:
Send !plan in a channel where the bot is present. Your schedule will be sent as a DM.
PeriodObject: Represents a single class period with details like time, subject, teacher, and room.erstelle_stundenplan: Processes Untis data and formats it into a readable schedule string.- Discord Bot: Listens for
!plancommands, fetches the schedule, and sends it via DM.
- Use a secure method for storing environment variables.
- Consider error handling and caching for performance.
- Customize the schedule format and Discord integration.
- Command-line arguments for class selection.
- Caching for frequent schedule requests.
- Support for multiple classes.
- Cloud deployment for continuous availability.