Commit graph

269 commits

Author SHA1 Message Date
4a1c1083d0 Fix imports 2024-08-17 22:55:30 +01:00
ca87b3d17e Sneak in a removal of the autopep8 setting that isn't needed anymore 2024-08-17 22:54:38 +01:00
1b93396315 Add string to the new schedule button sharing 2024-08-17 22:53:05 +01:00
b5c86f51ca Fix up merge conflicts 2024-08-17 22:45:20 +01:00
381756ce91 Merge main 2024-08-17 22:39:07 +01:00
251befb1a5 Implement a ton of string variants 2024-08-17 22:33:04 +01:00
125105469a Pull out all strings the bot says to a class
Also implement a randomised wrapper
2024-08-17 21:57:27 +01:00
da0998cf62
Merge pull request #17 from mdiluz/add-schedule-button
Add a button to the /schedule command to share it with the channel
2024-08-17 15:06:17 +01:00
e880075d3b
Merge branch 'main' into add-schedule-button 2024-08-17 15:05:20 +01:00
cc8490f38f Update the schedule button to properly reply to the user 2024-08-17 15:03:57 +01:00
9d920ce831 Add a button to the /schedule command to post it to the channel 2024-08-17 14:59:16 +01:00
69005ef498 Convert State to global
This was just getting too painful to manage, especially passing around these state objects
2024-08-17 14:58:19 +01:00
934c2e24fc
Merge pull request #16 from mdiluz/fix-leavers
Fix /leave not working for anyone who's paused in the past
2024-08-17 14:17:13 +01:00
f926a36069 Fix /leave not working for anyone who's paused in the past
Some checks failed
Test, Build and Publish / test (push) Has been cancelled
Test, Build and Publish / build-and-push-images (push) Has been cancelled
We now clear the re-activate value when a user is unpaused.

Added bonus here is various bits of refactor and cleanup, with some tests
2024-08-17 14:14:45 +01:00
946de66f52 Ensure we clear the reactivate flag
Otherwise a user can pause any time they like but they can never leave
2024-08-17 12:34:07 +01:00
fe54dcb213
Merge pull request #15 from mdiluz/fix-time
Fix the time printout in /list
2024-08-17 00:27:18 +01:00
f7aff274bf
Merge branch 'main' into fix-time 2024-08-17 00:25:56 +01:00
aa60ea9676 Fix the time printout in /list
Forgetting to store the outcome of .replace, and also not zeroing the smaller parts
2024-08-17 00:24:58 +01:00
b4df026efb
Merge pull request #14 from mdiluz/add-cancel
Add /cancel
2024-08-17 00:15:39 +01:00
92be1d1bf0 Add /cancel
Using cancel=True on /schedule was a PITA
2024-08-17 00:14:10 +01:00
eeede2e74a
Merge pull request #13 from mdiluz/date-formats
Send dates with discord formats
2024-08-17 00:02:33 +01:00
95e44b60f4 Send dates with discord formats! 2024-08-17 00:00:47 +01:00
21d004e94a
Merge pull request #12 from mdiluz/late-night-cleanup
Late night cleanup
2024-08-16 23:48:46 +01:00
d8cda2e19a Update the README a little bit 2024-08-16 23:44:14 +01:00
6b9ae56dd1 Clean up the workflow file 2024-08-16 23:40:12 +01:00
ef88117f36 Move the matcher button back into the cog 2024-08-16 23:36:43 +01:00
51b49f507d Rename the ambiguous cog name 2024-08-16 23:29:15 +01:00
e8ff102e33 Some matching cleanup and move a utility function out 2024-08-16 23:28:07 +01:00
964e1c8f84 Move state back out of it's own lil module 2024-08-16 23:23:18 +01:00
c9446605bc Move ops functions into state 2024-08-16 23:21:20 +01:00
65db66bff4 Clean out more references to the config 2024-08-16 23:17:03 +01:00
5e262deda6 Remove config, YAGNI 2024-08-16 23:15:43 +01:00
63d9081e07 A bunch more state cleanup, no need for functions that only get used once 2024-08-16 23:03:40 +01:00
ef4dd5c571 Use a decorator for the safe write in State
This is a little cleaner to my eyes
2024-08-16 22:53:10 +01:00
37e1e7a7ae
Merge pull request #11 from mdiluz/follow-up-fixes
A few follow-up fixes
2024-08-16 10:27:14 +01:00
a5d66aca4e Fix a bunch of failed imports and types from previous changes 2024-08-16 10:25:01 +01:00
01e9c98d3f Fix the matchy install link (use the OAuth one not the "install" one) 2024-08-16 10:25:01 +01:00
0e81951f75 Ensure the path directory is created before saving a json file 2024-08-16 10:25:01 +01:00
04e9e3a5b1
Merge pull request #10 from mdiluz/reformat-cleaup
Big reformat and cleanup
2024-08-14 22:56:48 +01:00
edeeaf578a Fix the import in matching.py 2024-08-14 22:50:36 +01:00
be7a1d080a Combine the two workflows so publish can depend on test 2024-08-14 22:49:36 +01:00
abbae361c7 Fix the test path 2024-08-14 22:45:35 +01:00
92bc50396b Huge re-org to match normal python project structure 2024-08-14 22:42:53 +01:00
b263e20ca2 Remove all no-longer needed requirements 2024-08-14 22:02:37 +01:00
86a59ddaff
Merge pull request #9 from mdiluz/mdiluz-patch-1
Update README.md
2024-08-14 21:22:41 +01:00
25c7afbf08
Update README.md
Fix a link in the README file
2024-08-14 21:21:50 +01:00
f310cd36a4
Merge pull request #8 from mdiluz/new-pfp
Add a new app icon designed by the wonderful heyheymomo
2024-08-14 20:48:41 +01:00
ec21e98011 Update the size and crop of the images 2024-08-14 20:46:17 +01:00
9b7789eac4 Add PFP designed by the wonderful heyheymomo
https://ko-fi.com/heyheymomo

Attribution with the "terms" provided on comission.
2024-08-14 20:37:09 +01:00
e577cea62a
Merge pull request #7 from mdiluz/allow-choose-image-tag
A few small fixups
2024-08-14 19:04:39 +01:00