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
- 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.)
ticker will now only update timetable not send all requests to avoid rate limiting
Untis.go Main() will only be used in initial startup
ticker cleanup in botstart since that isnt being used anymore
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.