87a0c8f4b6
Remove the default state given to members_to_groups
2024-08-13 23:29:57 +01:00
d014b1a7fd
Move the cog test out into py so it can access state
2024-08-13 23:27:58 +01:00
c04c6d672d
Remove the TODO about the matcher scope, makes sense now
2024-08-13 23:24:36 +01:00
d517ccb150
Add a new $grant command to let the owner give others the matcher scope
2024-08-13 23:24:14 +01:00
71147e963e
Merge pull request #3 from mdiluz/integration-tests
...
Failed attempt at adding integration tests, but there were some other benefits I suppose
2024-08-13 23:10:23 +01:00
9131fa48ca
Fix a couple of linting errors
2024-08-13 23:08:50 +01:00
682d31afe4
Use logger.warning to shut up deprecation warnings
2024-08-13 23:08:01 +01:00
f65497b91e
Add a small TODO entry
2024-08-13 23:05:14 +01:00
d856b74d1c
Fix the format breaking the match print again
2024-08-13 23:05:14 +01:00
d3cdec3965
Move the cogs into a subdir
2024-08-13 23:05:14 +01:00
93337ebde9
Add the coverage file to the ignore list
2024-08-13 23:05:14 +01:00
f25dc8db35
Add a very basic ownership validation for the owner cog
2024-08-13 23:05:14 +01:00
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