diff --git a/README.md b/README.md index b560dc8..ff7ad93 100644 --- a/README.md +++ b/README.md @@ -4,25 +4,30 @@ Matchy matches matchees. Matchy is a Discord bot that groups up users for fun and vibes. Matchy can be installed by clicking [here](https://discord.com/oauth2/authorize?client_id=1270849346987884696). ## Commands -### /match -Matches groups of users with a given role and posts those groups to the channel. +### /match [group_min: int(3)] [matchee_role: str(@Matchee)] +Matches groups of users with a given role and posts those groups to the channel. Tracks historical matches and attempts to match users to make new connections with people with divergent roles, in an attempt to maximise diversity. -### $sync -Only usable by `OWNER` users, reloads the config and syncs commands. Only usable in DMs with the bot user. +### $sync and $close +Only usable by `OWNER` users, reloads the config and syncs commands, or closes down the bot. Only usable in DMs with the bot user. ## Dependencies -* `python3` obviously -* `discord.py` python module -* `pytest` for testing -* `schema` python module for file validation +* `python3` - Obviously + +### Python modules +* `discord.py` - Discord bot functionality +* `pytest` - Testing +* `schema` - File format validation +* `pytest-cov` - Code coverage testing ## Config -Matchy is configured by a `config.py` file that takes this format: +Matchy is configured by a `config.json` file that takes this format: ``` -TOKEN = "<>" -OWNERS = [ - <>, -] +{ + "token": "<>", + "owners": [ + <> + ] +} ``` User IDs can be grabbed by turning on Discord's developer mode and right clicking on a user. diff --git a/coverage.sh b/coverage.sh new file mode 100755 index 0000000..f26ec2b --- /dev/null +++ b/coverage.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +pytest --cov=. --cov-report=html \ No newline at end of file