Commit graph

3 commits

Author SHA1 Message Date
Jannover5000r
d2a84a8435 Removed Fatalf
in order to prevent a huge amount of restarts i removed Fatalf and made it return normally

I also made GetTime load the timezone once and just return the correct value as well as default to utc

made the Auth function retry 3 times per account and send an error after that

put time.Sleep into the correct loop in main.go

initUpdate is in main now
2026-08-25 23:27:37 +02:00
Jannover5000r
1d57e8a867 made a lot of changes for the workflow of the bot
- Timezone handling got updated
- Logs have been deleted to avoid duplicates and clean up the terminal
- removed unused code
- fixed an issue where the updating time threw errors
- improvements to the updateting of timetable data, only using a single api call now
- improved init to intitialize all needed files (classrooms, subjects etc.)
2026-08-25 22:53:59 +02:00
google-labs-jules[bot]
8b42761cf0 feat: Implement timetable fetching in checkTimetableChangesForUser
This commit resolves the TODO in the `checkTimetableChangesForUser` function in `Botrun/BotStart.go`.

The new implementation fetches the user's timetable by calling the `Untis.Auth` and `Untis.Timetable` functions. It then compares the new timetable with the previous one and sends a notification if there are any changes.

As part of this change, the `Bot` directory was renamed to `Untis` to follow Go conventions, and the import paths were updated in `Botrun/BotStart.go` and `main.go`. The `.gitignore` file was also updated to ignore the build artifact.
2025-10-20 02:17:00 +00:00
Renamed from Bot/Rooms.go (Browse further)