Commit graph

10 commits

Author SHA1 Message Date
7491a4d2f8 Account for the cadence in all the messages
Some checks failed
Test, Build and Publish / test (pull_request) Failing after 23s
Test, Build and Publish / build-and-push-images (pull_request) Has been skipped
2024-09-22 14:20:47 +01:00
2ad7ed2ff2 Fix not returning values from safe_write functions 2024-09-22 14:20:34 +01:00
d83f933f1d Only yield matching tasks if the weekly cadence has been hit
All checks were successful
Test, Build and Publish / test (pull_request) Successful in 35s
Test, Build and Publish / build-and-push-images (pull_request) Successful in 1m12s
2024-09-22 12:20:55 +01:00
e9cccefacb Add cadence argument to the /schedule command
This allows setting the cadence, or changing it. When changing the initial start time will be reset
2024-09-22 12:09:59 +01:00
b86aaf7016 Add cadence values to the matchy tasks
cadence - Run this task every "x" weeks
cadence - Unix seconds timestamp for the start of this cadence
2024-09-22 11:57:44 +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
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
92be1d1bf0 Add /cancel
Using cancel=True on /schedule was a PITA
2024-08-17 00:14:10 +01:00
964e1c8f84 Move state back out of it's own lil module 2024-08-16 23:23:18 +01:00
Renamed from matchy/files/state.py (Browse further)