Clean out more references to the config

This commit is contained in:
Marc Di Luzio 2024-08-16 23:17:03 +01:00
parent 5e262deda6
commit 65db66bff4
2 changed files with 2 additions and 22 deletions

2
.gitignore vendored
View file

@ -1,6 +1,4 @@
__pycache__ __pycache__
config.json
state.json
.venv .venv
.coverage .coverage
.matchy .matchy

View file

@ -46,26 +46,8 @@ Python tests are written to use `pytest` and cover most internal functionality.
## Hosting ## Hosting
### Config and State ### State
Matchy is configured by an optional `$MATCHY_CONFIG` envar or a `.matchy/config.json` file that takes this format: State is stored locally in a `.matchy/state.json` file. This will be created by the bot. This stores historical information on users, maching schedules, user auth scopes and more. See [`state.py`](matchy/files/state.py) for schema information if you need to inspect it.
```json
{
"version" : 2,
"match" : {
"score_factors": {
"repeat_role" : 4,
"repeat_match" : 8,
"extra_member" : 32,
"upper_threshold" : 64
}
}
}
```
Only the version is required.
See [`config.py`](matchy/files/config.py) for explanations for any extra settings here.
_State_ is stored locally in a `.matchy/state.json` file. This will be created by the bot. This stores historical information on users, maching schedules, user auth scopes and more. See [`state.py`](matchy/files/state.py) for schema information if you need to inspect it.
### Secrets ### Secrets
The `TOKEN` envar is required run the bot. It's recommended this is placed in a local `.env` file. To generate bot token for development see [this discord.py guide](https://discordpy.readthedocs.io/en/stable/discord.html). The `TOKEN` envar is required run the bot. It's recommended this is placed in a local `.env` file. To generate bot token for development see [this discord.py guide](https://discordpy.readthedocs.io/en/stable/discord.html).