Commit Graph

32 Commits

Author SHA1 Message Date
cc293e800d Refactor calculate function and move it to main.py; remove misc.py and update tests 2025-02-25 16:19:21 +01:00
b61ea5af19 Ignore more Ruff rules so we don't spam noqas everywhere 2025-02-24 17:16:06 +01:00
4aa0bd7837 Reduce the amount of files and functions 2025-02-24 13:52:00 +01:00
2806e6044d Refactor calculate() to properly handle paused jobs and fix tests 2025-02-21 21:11:50 +01:00
176a1a058c Refactor /remind list to use a normal embed and fix calculate() function 2025-02-13 03:07:27 +01:00
22b90fdcee Lower Python requirement to 3.10 instead of 3.13 2025-01-30 02:44:12 +01:00
9a629ce773 Refactor timezone handling, raise if fucked on startup 2025-01-26 15:51:08 +01:00
aec8c55299 Add Sentry DSN to .env.example and use computer name as environment 2025-01-26 04:52:52 +01:00
22f7028c1e Fix tests 2025-01-26 04:38:15 +01:00
93d2e54e97 Enhance test assertions with detailed error messages 2025-01-23 20:18:27 +01:00
bf5c08346e Update Dockerfile and add comments in pyproject.toml 2025-01-23 18:39:47 +01:00
07bc11fbff Move settings to a function and add tests 2025-01-22 17:45:29 +01:00
b8152836c8 Refactor job modification logic and improve label handling in ModifyJobModal 2025-01-20 23:28:18 +01:00
c8b6dbfe41 Start refactoring bot, add /remind add command 2025-01-03 15:03:47 +01:00
b2557b0f61 Fix test 2023-03-20 05:05:31 +01:00
39ecbd31a9 Fix test being broken do to time zones 2023-03-20 02:21:48 +01:00
40569cb91c Refactor create_pages.py and write tests 2023-03-20 02:18:04 +01:00
11d9f2c2a5 Use Ruff and fix all its warnings and errors 2023-03-19 00:54:55 +01:00
8e01a84d0b Check if send_to_user is in main 2022-12-15 00:07:43 +01:00
f6d9b4dfa1 Add test for checking if send_to_discord is in main 2022-10-30 14:54:33 +01:00
f8f70ebd11 "Fix" test 2022-09-29 01:43:30 +02:00
d93ddf4a6a Fix tests 2022-09-18 23:41:39 +02:00
21be6c00b3 Use modern Discord Ui stuff, fix time zones and, fix Dockerfile
Changes:
Use buttons, pagination and modals instead of old text-based stuff
Fix time zones (Closes #23)
Fix Dockerfile
Replace Discord.py with discord-py-interactions
Default time zone is now UTC instead of Europe/Stockholm

Replace
  /remind resume
  /remind pause
  /remind remove
  /remind modify
with
  /remind list
2022-09-17 22:23:43 +02:00
166002d275 Rename test file 2022-08-14 14:01:50 +02:00
35e47115b8 Move calc_counddown() to own file 2022-08-14 13:43:29 +02:00
0376ae0214 Change line-length to 120 2022-07-21 20:22:27 +02:00
caa9094be9 Fix test_calc_countdown 2022-05-02 23:34:25 +02:00
28da36d920 Bump version to v0.3.0 2022-02-19 01:50:57 +01:00
88e981e917 Use the Black profile for isort 2022-02-10 15:42:03 +01:00
509a2c4797 Add changelog and bump version to v0.2.0 2022-01-09 21:13:50 +01:00
c2c35ef000 Add tests 2021-07-26 21:10:37 +02:00
dc911b4a18 Use Poetry 2021-07-23 21:26:46 +02:00