Commit graph

9 commits

Author SHA1 Message Date
3a0bf82ecb Implement building with docker
See the README for usages and details.

A breaking changes here too:
* run.py is gone, we now handle that kind of thing with docker
* The token is out of the config and is now an ENVAR (ideally using a .env)
* `.json` files are now in a .matchy/ subdirectory, as this makes it a lot easier for the container to safely read

Bonus:
* fix a score_factors.setdefault call causing issues
* Reformat some of the readme
2024-08-14 16:55:23 +01:00
682d31afe4 Use logger.warning to shut up deprecation warnings 2024-08-13 23:08:01 +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
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
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
145907a0df Update the date format in the statefile 2024-08-11 22:31:20 +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
129721eb50 Move python files into py dir 2024-08-11 18:05:28 +01:00
Renamed from config.py (Browse further)