Commit Graph

95 Commits

Author SHA1 Message Date
07bc11fbff Move settings to a function and add tests 2025-01-22 17:45:29 +01:00
b25f18c7fb Remove unused functions 2025-01-21 18:54:21 +01:00
b8152836c8 Refactor job modification logic and improve label handling in ModifyJobModal 2025-01-20 23:28:18 +01:00
07297e5a56 Add /remind backup and /remind restore commands 2025-01-18 23:50:27 +01:00
4b3acc0948 Refactor things 2025-01-16 00:25:19 +01:00
ea079fb9b1 Refactor everything 2025-01-15 00:31:26 +01:00
e379afe108 Add better error handling 2025-01-14 00:22:52 +01:00
f1695848ef Add /remind interval 2025-01-12 23:39:32 +01:00
87e12cd208 Refactor /remind cron 2025-01-12 02:05:59 +01:00
566c0ce891 Add /remind cron command 2025-01-11 19:52:12 +01:00
14bf6d7fbe Move ui stuff to ui.py 2025-01-10 23:00:53 +01:00
1b1deb72d9 Make pause button have the correct label 2025-01-08 21:08:12 +01:00
90b934107b Enhance job logging by adding current job state information and improve error handling in job calculations 2025-01-07 21:58:49 +01:00
3503c24f20 Enhance job deletion logging and response message 2025-01-05 23:34:03 +01:00
c028bd6db7 Improve /remind list modify modal 2025-01-04 20:10:30 +01:00
1d57e2f621 Use Discord's built-in timestamp thingy instead of manually creating a string 2025-01-04 01:11:24 +01:00
649cf1b4a3 Enhance /remind list and add calculate() 2025-01-03 23:09:47 +01:00
8337a20b50 Add WIP for /remind list, and make /remind add work 2025-01-03 21:38:44 +01:00
c8b6dbfe41 Start refactoring bot, add /remind add command 2025-01-03 15:03:47 +01:00
056cdffb7d Send error to webhook when failing to get webhook URL from reminder 2023-05-21 20:18:02 +02:00
c854e7faa0 Fix not being able to remove interval reminders 2023-05-21 20:07:24 +02: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
de5823d104 Fix countdown being broken when only seconds are left 2022-12-15 01:48:19 +01:00
f0f1339555 Use @interactions.option instead of option list 2022-12-15 01:40:13 +01:00
581a9d1340 Move parse stuff to own file 2022-12-15 01:25:24 +01:00
dbd0a58f70 Remove description because you can see it 2022-12-15 00:08:12 +01:00
96c8ed8d2e Add DMs to /remind list 2022-12-14 23:57:36 +01:00
e9afe82dee Add support for sending direct messages instead of sending to a channel 2022-12-14 22:47:52 +01:00
17eada7e29 Send errors and missed reminders to webhook
New environment variable that you need to use for this to work.
2022-10-31 01:24:32 +01:00
6e040c243d Autodefer stuff 2022-10-30 20:09:40 +01:00
8f01d1825f Add /parse command 2022-10-30 20:03:47 +01:00
bf767b622a Add a new function for parsing time from a string 2022-10-30 19:24:23 +01:00
72890a8f31 Remove unused __version__ 2022-10-30 14:55:08 +01:00
e053578392 Update main.py 2022-10-30 14:54:56 +01:00
7d9b8e25d4 Format code 2022-10-29 15:54:27 +02:00
84b6acbea9 Stop adding pages when we have 25 2022-10-26 01:57:33 +02:00
f44f0a31c3 Remove self.end_paginator and #type: ignore comments 2022-10-26 01:50:33 +02:00
8329bd3555 Make title and message shorter 2022-10-25 23:23:15 +02:00
ca09c2b4c9 Remove placeholders and make title truncated instead of the embed field 2022-09-30 03:16:39 +02:00
d6c94dc2de 97 is the new 100 2022-09-30 02:03:41 +02:00
9497de7d80 Truncate message to 100 characters when using /remind list 2022-09-30 01:33:27 +02:00
4f0bc96d2d Don't log bot_token when starting the bot 2022-09-27 02:49:40 +02:00
5e7c4af020 "Fix" /reminder list where there is only one reminder 2022-09-18 02:25:36 +02:00
8e6aedc1e2 Make error messages ephemeral 2022-09-18 02:09:58 +02:00
95a8acf19a Say what the problem is when error 2022-09-18 01:47:31 +02:00
d67960f7df Fix /remind list 2022-09-18 00:40:48 +02:00
68cd8d964a Fix time zone in both commands and format code with Black 2022-09-17 22:28:45 +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
d5bcf0169b Fix: Use TIMEZONE instead && Update Dockerfile 2022-09-13 20:00:26 +09:00