Commit graph

37 commits

Author SHA1 Message Date
Jannover5000r
fb503f6a9e added a few things to
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
2026-08-24 18:37:25 +02:00
Jannover5000r
2659237b3f added a new if clause to check if the time is past or before 3am before
sending the class update message

This will hopefully remove the spam everyday
2026-08-23 01:39:17 +02:00
Jannover5000r
a62e91b30b added timezonemanagment to timezone fix 2026-04-13 07:58:48 +00:00
Jannover5000r
3bf0158260 WebHook command now also toggles Lesson update message 2026-01-28 09:47:06 +00:00
Jannover5000r
b3628700ae new 2025-11-19 13:03:05 +01:00
Jannover5000r
c9a5dd2ff5 fixed the account creation 2025-11-14 09:10:35 +01:00
Jannover5000r
c29389e8f2 new changes to notification system 2025-11-13 10:13:54 +01:00
Jannover5000r
6c07bd9d13 delete unused 2025-11-11 09:46:15 +01:00
Jannover5000r
f05157916d removed git error 2025-11-11 09:12:04 +01:00
Jannover5000r
b45ac423b0 detailed changed lessons message 2025-11-11 09:08:10 +01:00
Jannover5000r
a718e700c3
main.go aktualisieren 2025-11-03 14:34:34 +01:00
Jannover5000r
3ba05a64ce
main.go aktualisieren 2025-11-03 14:27:42 +01:00
Jannover5000r
c3f73b99d5 removed unnecessary else bracket 2025-11-03 03:05:33 +01:00
Jannover5000r
4d04da7f78 !WebHook works now 2025-10-31 10:16:47 +01:00
Jannover5000r
7646684136 changed message and added toggle for default message 2025-10-30 20:00:58 +01:00
Jannover5000r
f3636c15c9 changed -1 to +1 2025-10-29 14:22:04 +01:00
Jannover5000r
68d358e1e4 timezone adjustment 2025-10-29 12:56:03 +01:00
Jannover5000r
0613d88b28 times for notification changed 2025-10-29 08:46:19 +01:00
Jannover5000r
909783373c works? 2025-10-28 08:42:22 +01: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
google-labs-jules[bot]
6c33d1a410 feat: Implement multi-user timetable tracking and notifications
Refactors the application to support multiple users for timetable logging.

- User accounts added via a Discord command are now stored in `accounts.json`.
- The main scheduling loop now fetches timetables for all registered users, in addition to the default user defined in the `.env` file.
- Notifications for registered users are now sent as direct messages, providing personalized updates. The default user continues to use the existing webhook.
- User-specific data files (e.g., `timetable_filled_<userID>.json`) are now used to keep each user's data separate.
- Error handling has been improved to prevent the application from crashing if an operation fails for a single user.
2025-10-10 10:10:15 +00:00
Jannover5000r
65d88f8c27 fixed .env loading 2025-08-26 01:47:23 +02:00
Jannover5000r
87887832c8 updated room discord message 2025-08-19 08:54:31 +02:00
Jannover5000r
81c9a496c0 Full bot functionality and multi user support 2025-08-10 11:38:31 +02:00
Jannover5000r
b8d9cb5c82 Bot start 2025-07-27 19:25:35 +02:00
Jannover5000r
1952c93a40 all working 2025-07-04 09:20:43 +02:00
Jannover5000r
3716c6dbf6 resolved small error 2025-07-03 15:25:56 +02:00
Jannover5000r
056fda8cff automatic Logging 2025-07-03 14:13:59 +02:00
Jannover5000r
0308cf0985 posting as text 2025-07-02 07:51:25 +02:00
Jannover5000r
04acd01078 Next time to room 2025-06-27 12:55:28 +02:00
Jannover5000r
58415419bc Working timetable 2025-06-25 01:04:31 +02:00
Jannover5000r
b54e97a99f get rooms post 2025-06-23 13:48:12 +02:00
Jannover5000r
d8d1fc3679 as 2025-06-16 23:11:42 +02:00
Jannover5000r
037cdbbcaf no webhook message 2025-06-16 21:20:22 +02:00
Jannover5000r
ca1d1383d7 Api calls 2025-06-16 13:39:35 +02:00
Jannover5000r
cf6f7ed843 more testing 2025-06-13 15:59:23 +02:00
Jannover5000r
a312f1d7ed Bot setup 2025-06-12 15:14:20 +02:00