Commit graph

236 commits

Author SHA1 Message Date
f2bfa6d33c Remove the OWNER scope as it's no longer used 2024-08-13 23:05:14 +01:00
f4f6df90fb Pull out the owner cog parts
Also make them use is_owner() rather than custom auth
2024-08-13 20:28:10 +01:00
723fa5dfba Pull out the majority of functionality into a cog 2024-08-13 20:27:55 +01:00
394f244ae0
Merge pull request #2 from mdiluz/scripts-as-python
Rewrite bin scripts to python
2024-08-13 18:28:52 +01:00
0beb2128bd Rewrite bin scripts to python in scripts/ dir 2024-08-13 18:27:53 +01:00
12727c4d1c Merge branch 'main' of github.com:mdiluz/matchy 2024-08-13 17:01:08 +01:00
caea1a46b5 A big README overhaul 2024-08-13 17:00:50 +01:00
6de9d3c9b7
Add the Unlicense
This friendly tool should be public domain :)
2024-08-13 15:25:19 +01:00
ceda1e2adc Fix some formatting and linting issues 2024-08-13 14:26:23 +01:00
2a835132dc Improve output format for /list and /pause 2024-08-13 14:18:03 +01:00
005e352343 Don't use setdefault when we're just getting information 2024-08-13 14:17:36 +01:00
0f9b19fa34 Add logging to most missing commands 2024-08-13 14:02:43 +01:00
6f3a185654 Fix whitespace 2024-08-13 13:55:55 +01:00
57ee32b140 Fix bad print statement in /list command 2024-08-13 13:53:48 +01:00
f00216fffc Remove the unneeded full tracking of history
Also use setdefault() to save a bunch of pain
Prevent a silly exhaustive history search on all channel times rather than just current users
2024-08-13 00:12:30 +01:00
503e899f19 Send a reminder message a day before a scheduled run 2024-08-12 23:29:40 +01:00
50f94b284b
Update README.md with info on /schedule command 2024-08-12 23:17:43 +01:00
f0498ad389 Another fix for stupid formatting
flake8 is bad?
2024-08-12 23:05:48 +01:00
f51423aa42 Fix multiline for python 3.11 2024-08-12 23:04:24 +01:00
07485ceb8d Implement /schedule
Allows matchers to schedule repeated weekly runs on a given weekday and hour

Can schedule multiple runs

Scheduled runs can be cancelled with cancel:True in the command

/list also shows any scheduled commands in that channel
2024-08-12 23:00:49 +01:00
522f89cff9 Fix instance tests 2024-08-12 19:31:41 +01:00
bebef9d38a Update the thread name to have the members 2024-08-12 19:29:47 +01:00
3ea779f7f2 Fix for python 3.11 2024-08-12 19:22:51 +01:00
8d399aae52 Remove the TODO for threads
No need to clean up, the server should have expiry timings set already
2024-08-12 19:18:14 +01:00
d3e1d01c9b Add thread creation to the match 2024-08-12 19:14:54 +01:00
142de9b3ca Add some more TODO entries 2024-08-12 13:35:17 +01:00
db00c9f7c1
Merge pull request #1 from mdiluz/feature-no-roles
First big update
2024-08-12 09:27:05 +01:00
34c8dc8ae2 Update the test name for regression tests 2024-08-11 23:03:39 +01:00
a22701b480 Improve the stress test
Have it progressively match groups bit by bit
2024-08-11 23:01:47 +01:00
87da9b9673 Ensure a valid (but empty) config dict 2024-08-11 22:42:23 +01:00
f7018e892d Allow not having a config file, otherwise pytest can't collect tests without it 2024-08-11 22:35:07 +01:00
10ac46b773 Update the README
* Add a note about using /join to rejoin
* Fix a link
* Remove a note about broken logging, seems to be working fine
2024-08-11 22:31:34 +01:00
145907a0df Update the date format in the statefile 2024-08-11 22:31:20 +01:00
0e80937092 Remove half-finished sentence 2024-08-11 22:11:56 +01:00
9cf74580e9 Fix the readme link 2024-08-11 22:10:45 +01:00
9043615498 Move core matching factors to the config file
Bonus changes here were making the config a singleton, fixing some more tests and then re-writing the stress test because it was pissing me off.
2024-08-11 22:07:43 +01:00
a5d7dae851 Fix indentation in matchy.py 2024-08-11 19:12:44 +01:00
c77c83c929 Pull the stress test parametes out so they're more obvious and can be tweaked 2024-08-11 19:09:38 +01:00
10b08264e4 Ensure we properly version the button custom ID 2024-08-11 19:04:43 +01:00
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