29d40cd80f
Fix up checking the auth scope for sending the button
2024-08-11 19:04:22 +01:00
78b3d002d8
Update the bot activity to the join message
2024-08-11 19:04:11 +01:00
5f66d3454c
Add a readme entry for pausing
2024-08-11 19:03:44 +01:00
7efe781e66
Implement user pausing with /pause
2024-08-11 19:02:47 +01:00
a480549ad3
Ensure bash scripts exit on fail and explain what they're doing
2024-08-11 18:07:20 +01:00
129721eb50
Move python files into py dir
2024-08-11 18:05:28 +01:00
22ad36fb09
Reorganise a little to put scripts in bin
2024-08-11 18:04:21 +01:00
f99f67789d
Update the readme for the new commands and formats
2024-08-11 17:58:21 +01:00
d3a22ff090
Significant set of changes
...
* Use /join and /leave instead of roles
* Use scopes to check for user rights rather than using the config file
* Add /list to show the set of current people signed up
* Add a bunch more testing for various things
* Version both the config and the state
2024-08-11 17:53:37 +01:00
78834f5319
Rename history to state as it's now storing more than just the history
2024-08-11 12:16:23 +01:00
c93c5b9ecd
Fix formatting
2024-08-11 12:07:19 +01:00
72f2c3540b
Add a few more TODO entries
2024-08-11 11:56:55 +01:00
abcab55a78
Some cleanup to help make things a little clearer for the user
2024-08-11 11:53:05 +01:00
5a919ea48a
Use a dynamic button to ensure the bot works between restarts
2024-08-11 11:37:20 +01:00
d16e33666e
Ensure autopep8 uses the venv
2024-08-11 11:36:43 +01:00
405e681cbe
Fix the venv check in the run script
2024-08-11 10:42:10 +01:00
715ea8c835
Remove the while loop from the run script
2024-08-11 10:40:05 +01:00
9f15b1672e
Add the venv to gitignore
2024-08-11 10:37:31 +01:00
622e15c911
Update the run.sh and README for using venv
2024-08-11 10:36:44 +01:00
cfc36d1689
Add flake to the requirements.txt
2024-08-11 10:33:56 +01:00
3197c40f88
Fix the python version and cache pip
2024-08-11 10:32:52 +01:00
7622521347
Use the pip requirements.txt in the github runner
2024-08-11 10:31:34 +01:00
d50e2d6411
Add venv requirements file
2024-08-11 10:26:21 +01:00
19a7b27f7b
Add a tests badge
2024-08-10 22:49:50 +01:00
183de82091
Add the user config and -X theirs to resolve conflicts
2024-08-10 22:44:49 +01:00
be52d51517
Try ensuring the checkout is not depth=1
2024-08-10 22:42:38 +01:00
fe1c5e1d99
Try adding a git pull
2024-08-10 22:40:38 +01:00
560b733a36
Check out the correct release branch
2024-08-10 22:34:05 +01:00
c049246fe3
Just directly merge main
2024-08-10 22:29:35 +01:00
c49cdffc4f
Try and use github.ref instead
2024-08-10 22:27:06 +01:00
b9e5a2cdfe
Use a release branch for the github action
2024-08-10 22:24:58 +01:00
b6b26b43a4
Rename the testing yml
2024-08-10 22:21:52 +01:00
787da53978
Update pytest.yml to force push the tags
2024-08-10 22:07:44 +01:00
07efbf30de
Update the run command to use the validated tag
2024-08-10 22:06:08 +01:00
30ddc4a448
Update the README with more infomation
2024-08-10 22:04:21 +01:00
351dccf9e2
Fix whitespace
2024-08-10 21:53:20 +01:00
7e8fdaa510
Update pytest.yml to add a tag
2024-08-10 21:52:16 +01:00
c87d7705cf
Update the matching algorythm to take into account role similarity
2024-08-10 21:47:32 +01:00
d3eed67882
Add schema to the list of dependencies
2024-08-10 18:18:38 +01:00
b05f0be71f
Add schema to required modules
2024-08-10 16:35:52 +01:00
db90a22efe
Remove pytest timeout
...
This is literally in the documentation??
2024-08-10 16:35:00 +01:00
292897073a
Ensure we don't bother testing group sizes of 1
2024-08-10 16:32:48 +01:00
01b7f1d249
Add a stress test to validate a significant set of settings
2024-08-10 16:30:56 +01:00
1bef611806
Ensure we don't approve when groups are lower than the requested number
2024-08-10 16:30:33 +01:00
e002c5c9d5
Adjust to simply step forward in time until present day
2024-08-10 15:13:42 +01:00
874a24dd1d
Implement a history-based matching algorythm
...
The bot will attempt to keep producing groups with entirely unique matches based on the full history of matches until it can't. It'll then step forward and ignore a week of history and try again, ignoring more history until no history is left
2024-08-10 15:12:14 +01:00
ed2375386b
Pull file operations out to a files.py
2024-08-10 10:58:31 +01:00
96fb77f71f
Some refactoring of the new external files
2024-08-10 10:55:09 +01:00
c44f16dd8f
Pull out the config and history classes
2024-08-10 10:45:44 +01:00
d0865bd780
Add match data to the history
2024-08-10 10:25:11 +01:00