Commit graph

255 commits

Author SHA1 Message Date
10e3dd3b36 Add more random suggestion options 2024-09-24 11:31:37 +01:00
367d12578c Add a thread message with suggestions 2024-09-22 15:14:19 +01:00
dabd0d9b18 Merge pull request 'Update the readme with the new cadence value' () from mdiluz-patch-2 into main
Reviewed-on: 
2024-09-22 14:43:39 +01:00
3b813a63da Merge branch 'main' into mdiluz-patch-2 2024-09-22 14:41:38 +01:00
e8c5ac9939 Merge pull request 'Call the write next datetime function when sending to the channel' () from fix-schedule-send-button into main
Reviewed-on: 
2024-09-22 14:40:35 +01:00
e3d96faaa7 Call the write next datetime function when sending to the channel 2024-09-22 14:38:09 +01:00
6d6f9d25f9 Update the readme with the new cadence value 2024-09-22 14:30:27 +01:00
9d3d57ef30 Merge pull request 'Add a weekly cadence to the match schedule' () from issue-9-advanced-cadence into main
Reviewed-on: 
2024-09-22 14:26:39 +01:00
39bb8dbf19 Remove unused timedelta import 2024-09-22 14:23:59 +01:00
7491a4d2f8 Account for the cadence in all the messages 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
93590d14b7 Ensure a cadence of 0 does not get used
The user surely meant 1
2024-09-22 12:22:54 +01:00
d83f933f1d Only yield matching tasks if the weekly cadence has been hit 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
caadca885c Merge pull request 'Remove TODO from readme' () from mdiluz-patch-1 into main
Reviewed-on: 
2024-09-18 15:46:20 +01:00
6ce9c81658 Remove TODO from readme 2024-09-18 15:44:09 +01:00
87f84942a3 Merge pull request 'Add a few more entries to the TODO' () from mdiluz-patch-2 into main
Reviewed-on: 
2024-09-18 15:20:21 +01:00
b25b2ba502 Add a few more entries to the TODO 2024-09-18 15:17:49 +01:00
bc2cbeddec Merge pull request 'Update dependency pytest to v8.3.3' () from renovate/pytest-8.x into main
Reviewed-on: 
2024-09-12 08:19:38 +01:00
cc1d02386a Update dependency pytest to v8.3.3 2024-09-10 11:00:08 +00:00
a0afa447da Merge pull request 'Update dependency pytest-asyncio to v0.24.0' () from renovate/pytest-asyncio-0.x into main
Reviewed-on: 
2024-08-26 21:53:03 +01:00
1616888680 Update dependency pytest-asyncio to v0.24.0 2024-08-26 20:51:13 +00:00
33b668a4a4 Merge pull request 'Configure Renovate' () from renovate/configure into main
Reviewed-on: 
2024-08-26 21:00:27 +01:00
9e6366f238 Add renovate.json 2024-08-26 20:58:35 +01:00
b1826c834f Merge pull request 'Delete docker-compose.yml' () from mdiluz-patch-1 into main
Reviewed-on: 
2024-08-26 20:56:13 +01:00
a7096f60f7 Delete docker-compose.yml
No longer needs to be in the repo
2024-08-26 20:54:20 +01:00
6677449644 Merge pull request 'Use var.DOCKER_REGISTRY for the registry location' () from use-var-for-registry into main
Reviewed-on: 
2024-08-25 23:53:20 +01:00
7ce9769bf0 Pluralise the ${{ vars.x }} reference name 2024-08-25 23:50:43 +01:00
f4d2c45d94 Use var.DOCKER_REGISTRY for the registry location 2024-08-25 23:47:20 +01:00
c6e252a82a Remove the docker-compose file and simply add it as a suggestion 2024-08-25 23:21:44 +01:00
7afa5086fd Use forgejo registry for the image 2024-08-25 21:41:43 +01:00
25cb5b9dba Update and fix up for forgejo runners
No more attestation, this doesn't work on forgejo
2024-08-25 19:30:19 +01:00
72880643b2 Merge pull request 'Update action to match with forgejo needs' () from forgejo into main
Reviewed-on: 
2024-08-25 16:32:18 +01:00
c1bcbeeab7 Update action to match with forgejo needs 2024-08-25 16:30:50 +01:00
dc14d48d20
Merge pull request from mdiluz/character
Add randomised strings to what matchy says
2024-08-17 22:59:08 +01:00
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 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 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
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